mirror of
https://github.com/jlengrand/adyen-node-api-library.git
synced 2026-03-10 08:01:20 +00:00
102 lines
3.0 KiB
TypeScript
102 lines
3.0 KiB
TypeScript
/*
|
|
* The version of the OpenAPI document: v69
|
|
* Contact: developer-experience@adyen.com
|
|
*
|
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
* https://openapi-generator.tech
|
|
* Do not edit this class manually.
|
|
*/
|
|
|
|
import { Amount } from './amount';
|
|
import { Split } from './split';
|
|
|
|
export class PaymentAmountUpdateResource {
|
|
'amount': Amount;
|
|
/**
|
|
* The merchant account that is used to process the payment.
|
|
*/
|
|
'merchantAccount': string;
|
|
/**
|
|
* The [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment to update.
|
|
*/
|
|
'paymentPspReference': string;
|
|
/**
|
|
* Adyen\'s 16-character reference associated with the amount update request.
|
|
*/
|
|
'pspReference': string;
|
|
/**
|
|
* The reason for the amount update. Possible values: * **DelayedCharge** * **NoShow**
|
|
*/
|
|
'reason'?: PaymentAmountUpdateResource.ReasonEnum;
|
|
/**
|
|
* Your reference for the amount update request. Maximum length: 80 characters.
|
|
*/
|
|
'reference': string;
|
|
/**
|
|
* An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For details, refer to [Providing split information](https://docs.adyen.com/marketplaces-and-platforms/processing-payments#providing-split-information).
|
|
*/
|
|
'splits'?: Array<Split>;
|
|
/**
|
|
* The status of your request. This will always have the value **received**.
|
|
*/
|
|
'status': PaymentAmountUpdateResource.StatusEnum;
|
|
|
|
static discriminator: string | undefined = undefined;
|
|
|
|
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
|
{
|
|
"name": "amount",
|
|
"baseName": "amount",
|
|
"type": "Amount"
|
|
},
|
|
{
|
|
"name": "merchantAccount",
|
|
"baseName": "merchantAccount",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"name": "paymentPspReference",
|
|
"baseName": "paymentPspReference",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"name": "pspReference",
|
|
"baseName": "pspReference",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"name": "reason",
|
|
"baseName": "reason",
|
|
"type": "PaymentAmountUpdateResource.ReasonEnum"
|
|
},
|
|
{
|
|
"name": "reference",
|
|
"baseName": "reference",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"name": "splits",
|
|
"baseName": "splits",
|
|
"type": "Array<Split>"
|
|
},
|
|
{
|
|
"name": "status",
|
|
"baseName": "status",
|
|
"type": "PaymentAmountUpdateResource.StatusEnum"
|
|
} ];
|
|
|
|
static getAttributeTypeMap() {
|
|
return PaymentAmountUpdateResource.attributeTypeMap;
|
|
}
|
|
}
|
|
|
|
export namespace PaymentAmountUpdateResource {
|
|
export enum ReasonEnum {
|
|
DelayedCharge = <any> 'delayedCharge',
|
|
NoShow = <any> 'noShow'
|
|
}
|
|
export enum StatusEnum {
|
|
Received = <any> 'received'
|
|
}
|
|
}
|