Skip to content

Commit

Permalink
update schema
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmyn committed May 13, 2021
1 parent 62659ad commit 1817e1d
Show file tree
Hide file tree
Showing 4 changed files with 66 additions and 14 deletions.
72 changes: 62 additions & 10 deletions src/api.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// tslint:disable
/**
* MONEI API v1
* The MONEI API is organized around [REST](https://en.wikipedia.org/wiki/Representational_State_Transfer). Our API has predictable resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.
* The MONEI API is organized around [REST](https://en.wikipedia.org/wiki/Representational_State_Transfer). Our API has predictable resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs. <br/><br/> **Base URL:** https://api.monei.com/v1 <br/><br/> **Client libraries:** <ul> <li><a target=\"_blank\" href=\"https://github.com/MONEI/monei-php-sdk\">PHP SDK</a></li> <li><a target=\"_blank\" href=\"https://github.com/MONEI/monei-python-sdk\">Python SDK</a></li> <li><a target=\"_blank\" href=\"https://github.com/MONEI/monei-node-sdk\">Node.js SDK</a></li> </ul>
*
* The version of the OpenAPI document: 1.0.0
*
Expand All @@ -14,7 +14,7 @@

import * as globalImportUrl from 'url';
import { Configuration } from './configuration';
import globalAxios, { AxiosPromise, AxiosInstance } from '../axios';
import globalAxios, { AxiosPromise, AxiosInstance } from 'axios';
// Some imports not used depending on template conditions
// @ts-ignore
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from './base';
Expand Down Expand Up @@ -118,6 +118,18 @@ export interface Card {
* @memberof Card
*/
expYear?: string;
/**
* The cardholder\'s name, as stated in the credit card.
* @type {string}
* @memberof Card
*/
cardholderName?: string;
/**
* The cardholder\'s email address.
* @type {string}
* @memberof Card
*/
cardholderEmail?: string;
}
/**
*
Expand All @@ -126,11 +138,17 @@ export interface Card {
*/
export interface ConfirmPaymentRequest {
/**
* A payment token generated by monei.js [UI Components](https://docs.monei.com/docs/monei-js-overview) or a paymentToken [saved after a previous successful payment](https://docs.monei.com/docs/save-payment-method).
* A payment token generated by monei.js [Components](https://docs.monei.com/docs/monei-js-overview) or a paymentToken [saved after a previous successful payment](https://docs.monei.com/docs/save-payment-method).
* @type {string}
* @memberof ConfirmPaymentRequest
*/
paymentToken: string;
/**
*
* @type {ConfirmPaymentRequestPaymentMethod}
* @memberof ConfirmPaymentRequest
*/
paymentMethod?: ConfirmPaymentRequestPaymentMethod;
/**
* If set to true a permanent token that represents a payment method used in the payment will be generated.
* @type {boolean}
Expand All @@ -156,6 +174,38 @@ export interface ConfirmPaymentRequest {
*/
shippingDetails?: PaymentShippingDetails;
}
/**
* Additional information about the payment method used for this payment.
* @export
* @interface ConfirmPaymentRequestPaymentMethod
*/
export interface ConfirmPaymentRequestPaymentMethod {
/**
*
* @type {ConfirmPaymentRequestPaymentMethodCard}
* @memberof ConfirmPaymentRequestPaymentMethod
*/
card?: ConfirmPaymentRequestPaymentMethodCard;
}
/**
* Additional information about the card used for this payment.
* @export
* @interface ConfirmPaymentRequestPaymentMethodCard
*/
export interface ConfirmPaymentRequestPaymentMethodCard {
/**
* The cardholder\'s name, as stated in the credit card.
* @type {string}
* @memberof ConfirmPaymentRequestPaymentMethodCard
*/
cardholderName?: string;
/**
* The cardholder\'s email address.
* @type {string}
* @memberof ConfirmPaymentRequestPaymentMethodCard
*/
cardholderEmail?: string;
}
/**
*
* @export
Expand Down Expand Up @@ -205,7 +255,7 @@ export interface CreatePaymentRequest {
*/
cancelUrl?: string;
/**
* A payment token generated by monei.js [UI Components](https://docs.monei.com/docs/monei-js-overview) or a paymentToken [saved after a previous successful payment](https://docs.monei.com/docs/save-payment-method). In case of the first one, you will also need to send the `sessionId` used to generate the token in the first place.
* A payment token generated by monei.js [Components](https://docs.monei.com/docs/monei-js-overview) or a paymentToken [saved after a previous successful payment](https://docs.monei.com/docs/save-payment-method). In case of the first one, you will also need to send the `sessionId` used to generate the token in the first place.
* @type {string}
* @memberof CreatePaymentRequest
*/
Expand Down Expand Up @@ -620,7 +670,9 @@ export enum PaymentPaymentMethodMethodEnum {
Bizum = 'bizum',
GooglePay = 'googlePay',
ApplePay = 'applePay',
Paypal = 'paypal'
ClickToPay = 'clickToPay',
Paypal = 'paypal',
Cofidis = 'cofidis'
}

/**
Expand Down Expand Up @@ -729,7 +781,7 @@ export interface PaymentPaymentMethodPaypal {
orderId?: string;
}
/**
* An array of allowed payment methods (used in hosted payment page). Must be enabled payment methods. Possible values: - `card` - `bizum` - `applePay` - `googlePay` - `paypal`
* An array of allowed payment methods (used in hosted payment page). Must be enabled payment methods. Possible values: - `card` - `bizum` - `applePay` - `googlePay` - `clickToPay` - `paypal` - `cofidis`
* @export
* @interface PaymentPaymentMethods
*/
Expand Down Expand Up @@ -1225,7 +1277,7 @@ export const PaymentsApiAxiosParamCreator = function (configuration?: Configurat
};
},
/**
* Confirm a payment that was created without a `paymentToken` or `paymentMethod`. You can only confirm a payment with the `PENDING` status. <br/><br/> You can charge a customer in two steps. First create a payment without payment details and then confirm it after you generate a `paymentToken` on the front-end with monei.js [UI Components](https://docs.monei.com/docs/monei-js-overview). <br/><br/> You can provide additional customer information, it will override the information passed in **create payment** request.
* Confirm a payment that was created without a `paymentToken` or `paymentMethod`. You can only confirm a payment with the `PENDING` status. <br/><br/> You can charge a customer in two steps. First create a payment without payment details and then confirm it after you generate a `paymentToken` on the front-end with monei.js [Components](https://docs.monei.com/docs/monei-js-overview). <br/><br/> You can provide additional customer information, it will override the information passed in **create payment** request.
* @summary Confirm Payment
* @param {string} id The payment ID
* @param {ConfirmPaymentRequest} [confirmPaymentRequest]
Expand Down Expand Up @@ -1502,7 +1554,7 @@ export const PaymentsApiFp = function(configuration?: Configuration) {
};
},
/**
* Confirm a payment that was created without a `paymentToken` or `paymentMethod`. You can only confirm a payment with the `PENDING` status. <br/><br/> You can charge a customer in two steps. First create a payment without payment details and then confirm it after you generate a `paymentToken` on the front-end with monei.js [UI Components](https://docs.monei.com/docs/monei-js-overview). <br/><br/> You can provide additional customer information, it will override the information passed in **create payment** request.
* Confirm a payment that was created without a `paymentToken` or `paymentMethod`. You can only confirm a payment with the `PENDING` status. <br/><br/> You can charge a customer in two steps. First create a payment without payment details and then confirm it after you generate a `paymentToken` on the front-end with monei.js [Components](https://docs.monei.com/docs/monei-js-overview). <br/><br/> You can provide additional customer information, it will override the information passed in **create payment** request.
* @summary Confirm Payment
* @param {string} id The payment ID
* @param {ConfirmPaymentRequest} [confirmPaymentRequest]
Expand Down Expand Up @@ -1606,7 +1658,7 @@ export const PaymentsApiFactory = function (configuration?: Configuration, baseP
return PaymentsApiFp(configuration).capture(id, capturePaymentRequest, options).then((request) => request(axios, basePath));
},
/**
* Confirm a payment that was created without a `paymentToken` or `paymentMethod`. You can only confirm a payment with the `PENDING` status. <br/><br/> You can charge a customer in two steps. First create a payment without payment details and then confirm it after you generate a `paymentToken` on the front-end with monei.js [UI Components](https://docs.monei.com/docs/monei-js-overview). <br/><br/> You can provide additional customer information, it will override the information passed in **create payment** request.
* Confirm a payment that was created without a `paymentToken` or `paymentMethod`. You can only confirm a payment with the `PENDING` status. <br/><br/> You can charge a customer in two steps. First create a payment without payment details and then confirm it after you generate a `paymentToken` on the front-end with monei.js [Components](https://docs.monei.com/docs/monei-js-overview). <br/><br/> You can provide additional customer information, it will override the information passed in **create payment** request.
* @summary Confirm Payment
* @param {string} id The payment ID
* @param {ConfirmPaymentRequest} [confirmPaymentRequest]
Expand Down Expand Up @@ -1695,7 +1747,7 @@ export class PaymentsApi extends BaseAPI {
}

/**
* Confirm a payment that was created without a `paymentToken` or `paymentMethod`. You can only confirm a payment with the `PENDING` status. <br/><br/> You can charge a customer in two steps. First create a payment without payment details and then confirm it after you generate a `paymentToken` on the front-end with monei.js [UI Components](https://docs.monei.com/docs/monei-js-overview). <br/><br/> You can provide additional customer information, it will override the information passed in **create payment** request.
* Confirm a payment that was created without a `paymentToken` or `paymentMethod`. You can only confirm a payment with the `PENDING` status. <br/><br/> You can charge a customer in two steps. First create a payment without payment details and then confirm it after you generate a `paymentToken` on the front-end with monei.js [Components](https://docs.monei.com/docs/monei-js-overview). <br/><br/> You can provide additional customer information, it will override the information passed in **create payment** request.
* @summary Confirm Payment
* @param {string} id The payment ID
* @param {ConfirmPaymentRequest} [confirmPaymentRequest]
Expand Down
4 changes: 2 additions & 2 deletions src/base.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// tslint:disable
/**
* MONEI API v1
* The MONEI API is organized around [REST](https://en.wikipedia.org/wiki/Representational_State_Transfer). Our API has predictable resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.
* The MONEI API is organized around [REST](https://en.wikipedia.org/wiki/Representational_State_Transfer). Our API has predictable resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs. <br/><br/> **Base URL:** https://api.monei.com/v1 <br/><br/> **Client libraries:** <ul> <li><a target=\"_blank\" href=\"https://github.com/MONEI/monei-php-sdk\">PHP SDK</a></li> <li><a target=\"_blank\" href=\"https://github.com/MONEI/monei-python-sdk\">Python SDK</a></li> <li><a target=\"_blank\" href=\"https://github.com/MONEI/monei-node-sdk\">Node.js SDK</a></li> </ul>
*
* The version of the OpenAPI document: 1.0.0
*
Expand All @@ -15,7 +15,7 @@
import { Configuration } from "./configuration";
// Some imports not used depending on template conditions
// @ts-ignore
import globalAxios, { AxiosPromise, AxiosInstance } from '../axios';
import globalAxios, { AxiosPromise, AxiosInstance } from 'axios';

export const BASE_PATH = "https://api.monei.com/v1".replace(/\/+$/, "");

Expand Down
2 changes: 1 addition & 1 deletion src/configuration.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// tslint:disable
/**
* MONEI API v1
* The MONEI API is organized around [REST](https://en.wikipedia.org/wiki/Representational_State_Transfer). Our API has predictable resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.
* The MONEI API is organized around [REST](https://en.wikipedia.org/wiki/Representational_State_Transfer). Our API has predictable resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs. <br/><br/> **Base URL:** https://api.monei.com/v1 <br/><br/> **Client libraries:** <ul> <li><a target=\"_blank\" href=\"https://github.com/MONEI/monei-php-sdk\">PHP SDK</a></li> <li><a target=\"_blank\" href=\"https://github.com/MONEI/monei-python-sdk\">Python SDK</a></li> <li><a target=\"_blank\" href=\"https://github.com/MONEI/monei-node-sdk\">Node.js SDK</a></li> </ul>
*
* The version of the OpenAPI document: 1.0.0
*
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// tslint:disable
/**
* MONEI API v1
* The MONEI API is organized around [REST](https://en.wikipedia.org/wiki/Representational_State_Transfer). Our API has predictable resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.
* The MONEI API is organized around [REST](https://en.wikipedia.org/wiki/Representational_State_Transfer). Our API has predictable resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs. <br/><br/> **Base URL:** https://api.monei.com/v1 <br/><br/> **Client libraries:** <ul> <li><a target=\"_blank\" href=\"https://github.com/MONEI/monei-php-sdk\">PHP SDK</a></li> <li><a target=\"_blank\" href=\"https://github.com/MONEI/monei-python-sdk\">Python SDK</a></li> <li><a target=\"_blank\" href=\"https://github.com/MONEI/monei-node-sdk\">Node.js SDK</a></li> </ul>
*
* The version of the OpenAPI document: 1.0.0
*
Expand Down

0 comments on commit 1817e1d

Please sign in to comment.