Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
/*
* payments_createPaymentSession
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/

package com.alipay.global.api.model.ams;

import lombok.*;

/** FundTransferAddress */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class FundTransferAddress {

/** Street address of the fund transfer party. Maximum length: 256 characters. */
private String address1;

/** City of the fund transfer party. Maximum length: 32 characters. */
private String city;

/**
* State, province, or administrative division code of the fund transfer party. Maximum length: 64
* characters.
*/
private String state;

/**
* Two-letter country code of the fund transfer party in ISO 3166-1 alpha-2 format. Maximum
* length: 2 characters.
*/
private String region;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
/*
* payments_createPaymentSession
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/

package com.alipay.global.api.model.ams;

import lombok.*;

/** FundTransferInfo */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class FundTransferInfo {

/**
* Fund transfer scenario. Supported values: ACCOUNTFUNDINGTRANSACTION (account funding/AFT
* top-up) and BACKTOBACKTRANSACTION (wallet top-up followed by purchase/B2B). If neither value is
* provided, the transaction is processed as a normal purchase. For AFT, transferSender and
* transferRecipient may be omitted; if supplied, they are passed to the card schemes. Maximum
* length: 32 characters.
*/
private String fundTransferType;

/**
* MCC of the ultimate seller in a back-to-back transaction, for SDWO wallet merchants only. Use a
* four-digit ISO 18245 MCC. If omitted, the merchant-onboarding MCC is used independently of
* sellerName; values supplied by non-wallet merchants are ignored. Maximum length: 4 characters.
*/
private String sellerMcc;

/**
* Name of the ultimate seller in a back-to-back transaction, for SDWO wallet merchants only. The
* cardholder statement displays AlipayHK*<sellerName>, TNGD*<sellerName>, or
* GrabPay*<sellerName>, according to the wallet platform. If omitted, the
* merchant-onboarding name is used independently of sellerMcc; values supplied by non-wallet
* merchants are ignored. Maximum length: 256 characters.
*/
private String sellerName;

private FundTransferSender transferSender;

private FundTransferRecipient transferRecipient;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
/*
* payments_createPaymentSession
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/

package com.alipay.global.api.model.ams;

import lombok.*;

/** FundTransferRecipient */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class FundTransferRecipient {

private FundTransferRecipientName recipientName;

private FundTransferAddress address;

/**
* Account number of the wallet receiving the funds. Only letters, digits, and hyphens are
* supported. Maximum length: 64 characters.
*/
private String recipientAccountNumber;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
/*
* payments_createPaymentSession
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/

package com.alipay.global.api.model.ams;

import lombok.*;

/** FundTransferRecipientName */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class FundTransferRecipientName {

/**
* Given name of the recipient (wallet account holder) for AML checks. Maximum length: 32
* characters.
*/
private String firstName;

/**
* Family name of the recipient (wallet account holder) for AML checks. Maximum length: 32
* characters.
*/
private String lastName;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
/*
* payments_createPaymentSession
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/

package com.alipay.global.api.model.ams;

import lombok.*;

/** FundTransferSender */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class FundTransferSender {

private FundTransferSenderName senderName;

private FundTransferAddress address;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
/*
* payments_createPaymentSession
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/

package com.alipay.global.api.model.ams;

import lombok.*;

/** FundTransferSenderName */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class FundTransferSenderName {

/**
* Given name of the sender (cardholder), collected for Mastercard/Visa AFT or back-to-back AML
* checks. Maximum length: 32 characters.
*/
private String firstName;

/**
* Family name of the sender (cardholder), collected for Mastercard/Visa AFT or back-to-back AML
* checks. Maximum length: 32 characters.
*/
private String lastName;
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import com.alipay.global.api.model.ams.CreditPayPlan;
import com.alipay.global.api.model.ams.CustomizedInfo;
import com.alipay.global.api.model.ams.Env;
import com.alipay.global.api.model.ams.FundTransferInfo;
import com.alipay.global.api.model.ams.Merchant;
import com.alipay.global.api.model.ams.Order;
import com.alipay.global.api.model.ams.PaymentFactor;
Expand All @@ -36,6 +37,8 @@
@Data
public class AlipayPayRequest extends AlipayRequest<AlipayPayResponse> {

private FundTransferInfo fundTransferInfo;

/**
* Use this parameter to submit metadata, including information for special use cases. Specify
* this parameter when you need to add metadata information.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import com.alipay.global.api.model.ams.CreditPayPlan;
import com.alipay.global.api.model.ams.CustomizedInfo;
import com.alipay.global.api.model.ams.Env;
import com.alipay.global.api.model.ams.FundTransferInfo;
import com.alipay.global.api.model.ams.Order;
import com.alipay.global.api.model.ams.PaymentFactor;
import com.alipay.global.api.model.ams.PaymentMethod;
Expand All @@ -40,6 +41,8 @@
@Data
public class AlipayPaymentSessionRequest extends AlipayRequest<AlipayPaymentSessionResponse> {

private FundTransferInfo fundTransferInfo;

/**
* A unique ID to identify a specific merchant account. Note: Specify this parameter when you use
* one client ID across multiple locations.
Expand Down
Loading