-
Notifications
You must be signed in to change notification settings - Fork 28
/
model_card.go
30 lines (29 loc) · 2.96 KB
/
model_card.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*
* Adyen Recurring API
*
* The Recurring APIs allow you to manage and remove your tokens or saved payment details. Tokens should be created with validation during a payment request. For more information, refer to our [Tokenization documentation](https://docs.adyen.com/checkout/tokenization). ## Authentication To connect to the Recurring API, you must use your basic authentication credentials. For this, create your web service user, as described in [How to get the WS user password](https://docs.adyen.com/user-management/how-to-get-the-web-service-ws-user-password). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@Company.YourCompany\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Recurring API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://pal-test.adyen.com/pal/servlet/Recurring/v49/disable ```
*
* API version: 49
* Contact: support@adyen.com
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
*/
package recurring
// Card struct for Card
type Card struct {
// The [card verification code](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid) (1-20 characters). Depending on the card brand, it is known also as: * CVV2/CVC2 – length: 3 digits * CID – length: 4 digits > If you are using [Client-Side Encryption](https://docs.adyen.com/classic-integration/cse-integration-ecommerce), the CVC code is present in the encrypted data. You must never post the card details to the server. > This field must be always present in a [one-click payment request](https://docs.adyen.com/classic-integration/recurring-payments). > When this value is returned in a response, it is always empty because it is not stored.
Cvc string `json:"cvc,omitempty"`
// The card expiry month. Format: 2 digits, zero-padded for single digits. For example: * 03 = March * 11 = November
ExpiryMonth string `json:"expiryMonth"`
// The card expiry year. Format: 4 digits. For example: 2020
ExpiryYear string `json:"expiryYear"`
// The name of the cardholder, as printed on the card.
HolderName string `json:"holderName"`
// The issue number of the card (for some UK debit cards only).
IssueNumber string `json:"issueNumber,omitempty"`
// The card number (4-19 characters). Do not use any separators. When this value is returned in a response, only the last 4 digits of the card number are returned.
Number string `json:"number"`
// The month component of the start date (for some UK debit cards only).
StartMonth string `json:"startMonth,omitempty"`
// The year component of the start date (for some UK debit cards only).
StartYear string `json:"startYear,omitempty"`
}