-
Notifications
You must be signed in to change notification settings - Fork 27
/
model_recurring_detail.go
43 lines (42 loc) · 3.24 KB
/
model_recurring_detail.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
31
32
33
34
35
36
37
38
39
40
41
42
43
/*
* 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
import (
"time"
)
// RecurringDetail struct for RecurringDetail
type RecurringDetail struct {
// This field contains additional data, which may be returned in a particular response. The additionalData object consists of entries, each of which includes the key and value.
AdditionalData *map[string]interface{} `json:"additionalData,omitempty"`
// The alias of the credit card number. Applies only to recurring contracts storing credit card details
Alias string `json:"alias,omitempty"`
// The alias type of the credit card number. Applies only to recurring contracts storing credit card details.
AliasType string `json:"aliasType,omitempty"`
Bank *BankAccount `json:"bank,omitempty"`
BillingAddress *Address `json:"billingAddress,omitempty"`
Card *Card `json:"card,omitempty"`
// Types of recurring contracts.
ContractTypes []string `json:"contractTypes,omitempty"`
// The date when the recurring details were created.
CreationDate *time.Time `json:"creationDate,omitempty"`
// The `pspReference` of the first recurring payment that created the recurring detail.
FirstPspReference string `json:"firstPspReference,omitempty"`
// An optional descriptive name for this recurring detail.
Name string `json:"name,omitempty"`
// The type or sub-brand of a payment method used, e.g. Visa Debit, Visa Corporate, etc. For more information, refer to [PaymentMethodVariant](https://docs.adyen.com/development-resources/paymentmethodvariant).
PaymentMethodVariant string `json:"paymentMethodVariant,omitempty"`
// The reference that uniquely identifies the recurring detail.
RecurringDetailReference string `json:"recurringDetailReference"`
ShopperName *Name `json:"shopperName,omitempty"`
// A shopper's social security number (only in countries where it is legal to collect).
SocialSecurityNumber string `json:"socialSecurityNumber,omitempty"`
// The payment method, such as “mc\", \"visa\", \"ideal\", \"paypal\".
Variant string `json:"variant"`
}