V1::PaymentOptionsController
SchoolProduct::PaymentOptions
index
Get a list of school_products
URL
GET /school_products/:school_product_id/payment_optionsObjeto resposta
Array<SchoolProduct::PaymentOption> | The created payment_options |
show
Get a payment_option information
URL
GET /payment_options/:idParâmetros obrigatórios
Nome | Tipo | Descrição |
---|---|---|
id | Integer | of the payment_option |
Objeto resposta
SchoolProduct::PaymentOption | The requested payment_option |
create
Create a new payment_option for the school product
URL
GET /school_products/:school_product_id/payment_options/:idParâmetros obrigatórios
Nome | Tipo | Descrição |
---|---|---|
school_product_id | Integer | Identifier of the school_product |
payment_option | Hash | The payment_option to create |
payment_option | String | kind The type of the option (common, free, subscription) |
payment_option | Integer | price The price to be charged |
Objeto resposta
SchoolProduct::PaymentOption | The requested payment_option |
update
Update a payment_option information
URL
GET /payment_options/:idParâmetros obrigatórios
Nome | Tipo | Descrição |
---|---|---|
payment_option | Hash | The payment_option to create |
payment_option | String | kind The type of the option (common, free, subscription) |
payment_option | Integer | price The price to be charged |
Objeto resposta
SchoolProduct::PaymentOption | The requested payment_option |
destroy
Delete the payment_option
URL
DELETE /payment_options/:idParâmetros obrigatórios
Nome | Tipo | Descrição |
---|---|---|
id | Integer | of the payment_option |