Struct ramp_api::card_programs::CardPrograms [−][src]
pub struct CardPrograms { /* fields omitted */ }
Implementations
pub async fn get_card_programs(
&self,
start: &str,
page_size: f64
) -> Result<GetCardProgramsResponse>
pub async fn get_card_programs(
&self,
start: &str,
page_size: f64
) -> Result<GetCardProgramsResponse>
List card programs.
This function performs a GET
to the /card-programs
endpoint.
Retrieve all card programs.
Parameters:
authorization: &str
– The OAuth2 token header.start: &str
– The ID of the last entity of the previous page, used for pagination to get the next page.page_size: f64
– The number of results to be returned in each page. The value must be between 2 and 10,000. If not specified, the default will be 1,000.
pub async fn post_resources_card_program(
&self,
body: &PostResourcesCardProgramRequest
) -> Result<CardProgram>
pub async fn post_resources_card_program(
&self,
body: &PostResourcesCardProgramRequest
) -> Result<CardProgram>
Create a card program.
This function performs a POST
to the /card-programs
endpoint.
Parameters:
authorization: &str
– The OAuth2 token header.
GET a card program.
This function performs a GET
to the /card-programs/{id}
endpoint.
Retrieve a single card program.
Parameters:
authorization: &str
– The OAuth2 token header.