-
Notifications
You must be signed in to change notification settings - Fork 28
/
model_create_checkout_session_response.go
2339 lines (2020 loc) · 81.5 KB
/
model_create_checkout_session_response.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/*
Adyen Checkout API
API version: 71
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package checkout
import (
"encoding/json"
"time"
"github.com/adyen/adyen-go-api-library/v8/src/common"
)
// checks if the CreateCheckoutSessionResponse type satisfies the MappedNullable interface at compile time
var _ common.MappedNullable = &CreateCheckoutSessionResponse{}
// CreateCheckoutSessionResponse struct for CreateCheckoutSessionResponse
type CreateCheckoutSessionResponse struct {
AccountInfo *AccountInfo `json:"accountInfo,omitempty"`
AdditionalAmount *Amount `json:"additionalAmount,omitempty"`
// This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value.
AdditionalData *map[string]string `json:"additionalData,omitempty"`
// List of payment methods to be presented to the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"allowedPaymentMethods\":[\"ideal\",\"giropay\"]`
AllowedPaymentMethods []string `json:"allowedPaymentMethods,omitempty"`
Amount Amount `json:"amount"`
ApplicationInfo *ApplicationInfo `json:"applicationInfo,omitempty"`
AuthenticationData *AuthenticationData `json:"authenticationData,omitempty"`
BillingAddress *BillingAddress `json:"billingAddress,omitempty"`
// List of payment methods to be hidden from the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"blockedPaymentMethods\":[\"ideal\",\"giropay\"]`
BlockedPaymentMethods []string `json:"blockedPaymentMethods,omitempty"`
// The delay between the authorisation and scheduled auto-capture, specified in hours.
CaptureDelayHours *int32 `json:"captureDelayHours,omitempty"`
// The platform where a payment transaction takes place. This field is optional for filtering out payment methods that are only available on specific platforms. If this value is not set, then we will try to infer it from the `sdkVersion` or `token`. Possible values: * **iOS** * **Android** * **Web**
Channel *string `json:"channel,omitempty"`
Company *Company `json:"company,omitempty"`
// The shopper's two-letter country code.
CountryCode *string `json:"countryCode,omitempty"`
// The shopper's date of birth in [ISO8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.
DateOfBirth *time.Time `json:"dateOfBirth,omitempty"`
// The date and time when the purchased goods should be delivered. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**.
DeliverAt *time.Time `json:"deliverAt,omitempty"`
DeliveryAddress *DeliveryAddress `json:"deliveryAddress,omitempty"`
// When true and `shopperReference` is provided, the shopper will be asked if the payment details should be stored for future one-click payments.
EnableOneClick *bool `json:"enableOneClick,omitempty"`
// When true and `shopperReference` is provided, the payment details will be tokenized for payouts.
EnablePayOut *bool `json:"enablePayOut,omitempty"`
// When true and `shopperReference` is provided, the payment details will be tokenized for recurring payments.
EnableRecurring *bool `json:"enableRecurring,omitempty"`
// The date the session expires in [ISO8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. When not specified, the expiry date is set to 1 hour after session creation. You cannot set the session expiry to more than 24 hours after session creation.
ExpiresAt time.Time `json:"expiresAt"`
FundOrigin *FundOrigin `json:"fundOrigin,omitempty"`
FundRecipient *FundRecipient `json:"fundRecipient,omitempty"`
// A unique identifier of the session.
Id string `json:"id"`
// A set of key-value pairs that specifies the installment options available per payment method. The key must be a payment method name in lowercase. For example, **card** to specify installment options for all cards, or **visa** or **mc**. The value must be an object containing the installment options.
InstallmentOptions *map[string]CheckoutSessionInstallmentOption `json:"installmentOptions,omitempty"`
// Price and product information about the purchased items, to be included on the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, Ratepay, and Zip.
LineItems []LineItem `json:"lineItems,omitempty"`
Mandate *Mandate `json:"mandate,omitempty"`
// The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant.
Mcc *string `json:"mcc,omitempty"`
// The merchant account identifier, with which you want to process the transaction.
MerchantAccount string `json:"merchantAccount"`
// This reference allows linking multiple transactions to each other for reporting purposes (i.e. order auth-rate). The reference should be unique per billing cycle. The same merchant order reference should never be reused after the first authorised attempt. If used, this field should be supplied for all incoming authorisations. > We strongly recommend you send the `merchantOrderReference` value to benefit from linking payment requests when authorisation retries take place. In addition, we recommend you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and `retry.skipRetry` values in `PaymentRequest.additionalData`.
MerchantOrderReference *string `json:"merchantOrderReference,omitempty"`
// Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. * Maximum 20 characters per key. * Maximum 80 characters per value.
Metadata *map[string]string `json:"metadata,omitempty"`
// Indicates the type of front end integration. Possible values: * **embedded** (default): Drop-in or Components integration * **hosted**: Hosted Checkout integration
Mode *string `json:"mode,omitempty"`
MpiData *ThreeDSecureData `json:"mpiData,omitempty"`
PlatformChargebackLogic *PlatformChargebackLogic `json:"platformChargebackLogic,omitempty"`
// Date after which no further authorisations shall be performed. Only for 3D Secure 2.
RecurringExpiry *string `json:"recurringExpiry,omitempty"`
// Minimum number of days between authorisations. Only for 3D Secure 2.
RecurringFrequency *string `json:"recurringFrequency,omitempty"`
// Defines a recurring payment type. Required when creating a token to store payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount.
RecurringProcessingModel *string `json:"recurringProcessingModel,omitempty"`
// Specifies the redirect method (GET or POST) when redirecting back from the issuer.
RedirectFromIssuerMethod *string `json:"redirectFromIssuerMethod,omitempty"`
// Specifies the redirect method (GET or POST) when redirecting to the issuer.
RedirectToIssuerMethod *string `json:"redirectToIssuerMethod,omitempty"`
// The reference to uniquely identify a payment.
Reference string `json:"reference"`
// The URL to return to when a redirect payment is completed.
ReturnUrl string `json:"returnUrl"`
RiskData *RiskData `json:"riskData,omitempty"`
// The payment session data you need to pass to your front end.
SessionData *string `json:"sessionData,omitempty"`
// The shopper's email address.
ShopperEmail *string `json:"shopperEmail,omitempty"`
// The shopper's IP address. In general, we recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > For 3D Secure 2 transactions, schemes require `shopperIP` for all browser-based implementations. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new).
ShopperIP *string `json:"shopperIP,omitempty"`
// Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal.
ShopperInteraction *string `json:"shopperInteraction,omitempty"`
// The combination of a language code and a country code to specify the language to be used in the payment.
ShopperLocale *string `json:"shopperLocale,omitempty"`
ShopperName *Name `json:"shopperName,omitempty"`
// Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address.
ShopperReference *string `json:"shopperReference,omitempty"`
// The text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /_**.
ShopperStatement *string `json:"shopperStatement,omitempty"`
// Set to true to show the payment amount per installment.
ShowInstallmentAmount *bool `json:"showInstallmentAmount,omitempty"`
// The shopper's social security number.
SocialSecurityNumber *string `json:"socialSecurityNumber,omitempty"`
// Boolean value indicating whether the card payment method should be split into separate debit and credit options.
SplitCardFundingSources *bool `json:"splitCardFundingSources,omitempty"`
// An array of objects specifying how to split a payment when using [Adyen for Platforms](https://docs.adyen.com/marketplaces-and-platforms/processing-payments#providing-split-information), [Classic Platforms integration](https://docs.adyen.com/marketplaces-and-platforms/classic/processing-payments#providing-split-information), or [Issuing](https://docs.adyen.com/issuing/manage-funds#split).
Splits []Split `json:"splits,omitempty"`
// The ecommerce or point-of-sale store that is processing the payment. Used in: * [Partner platform integrations](https://docs.adyen.com/marketplaces-and-platforms/classic/platforms-for-partners#route-payments) for the [Classic Platforms integration](https://docs.adyen.com/marketplaces-and-platforms/classic). * [Platform setup integrations](https://docs.adyen.com/marketplaces-and-platforms/additional-for-platform-setup/route-payment-to-store) for the [Balance Platform](https://docs.adyen.com/marketplaces-and-platforms).
Store *string `json:"store,omitempty"`
// When this is set to **true** and the `shopperReference` is provided, the payment details will be stored.
StorePaymentMethod *bool `json:"storePaymentMethod,omitempty"`
// Indicates if the details of the payment method will be stored for the shopper. Possible values: * **disabled** – No details will be stored (default). * **askForConsent** – If the `shopperReference` is provided, the UI lets the shopper choose if they want their payment details to be stored. * **enabled** – If the `shopperReference` is provided, the details will be stored without asking the shopper for consent.
StorePaymentMethodMode *string `json:"storePaymentMethodMode,omitempty"`
// The shopper's telephone number.
TelephoneNumber *string `json:"telephoneNumber,omitempty"`
// Sets a custom theme for [Hosted Checkout](https://docs.adyen.com/online-payments/build-your-integration/?platform=Web&integration=Hosted+Checkout). The value can be any of the **Theme ID** values from your Customer Area.
ThemeId *string `json:"themeId,omitempty"`
// If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), and not the payment authorisation.
// Deprecated
ThreeDSAuthenticationOnly *bool `json:"threeDSAuthenticationOnly,omitempty"`
// Set to true if the payment should be routed to a trusted MID.
TrustedShopper *bool `json:"trustedShopper,omitempty"`
// The URL for the Hosted Checkout page. Redirect the shopper to this URL so they can make the payment.
Url *string `json:"url,omitempty"`
}
// NewCreateCheckoutSessionResponse instantiates a new CreateCheckoutSessionResponse object
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
func NewCreateCheckoutSessionResponse(amount Amount, expiresAt time.Time, id string, merchantAccount string, reference string, returnUrl string) *CreateCheckoutSessionResponse {
this := CreateCheckoutSessionResponse{}
this.Amount = amount
this.ExpiresAt = expiresAt
this.Id = id
this.MerchantAccount = merchantAccount
var mode string = "embedded"
this.Mode = &mode
this.Reference = reference
this.ReturnUrl = returnUrl
var splitCardFundingSources bool = false
this.SplitCardFundingSources = &splitCardFundingSources
var threeDSAuthenticationOnly bool = false
this.ThreeDSAuthenticationOnly = &threeDSAuthenticationOnly
return &this
}
// NewCreateCheckoutSessionResponseWithDefaults instantiates a new CreateCheckoutSessionResponse object
// This constructor will only assign default values to properties that have it defined,
// but it doesn't guarantee that properties required by API are set
func NewCreateCheckoutSessionResponseWithDefaults() *CreateCheckoutSessionResponse {
this := CreateCheckoutSessionResponse{}
var mode string = "embedded"
this.Mode = &mode
var splitCardFundingSources bool = false
this.SplitCardFundingSources = &splitCardFundingSources
var threeDSAuthenticationOnly bool = false
this.ThreeDSAuthenticationOnly = &threeDSAuthenticationOnly
return &this
}
// GetAccountInfo returns the AccountInfo field value if set, zero value otherwise.
func (o *CreateCheckoutSessionResponse) GetAccountInfo() AccountInfo {
if o == nil || common.IsNil(o.AccountInfo) {
var ret AccountInfo
return ret
}
return *o.AccountInfo
}
// GetAccountInfoOk returns a tuple with the AccountInfo field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateCheckoutSessionResponse) GetAccountInfoOk() (*AccountInfo, bool) {
if o == nil || common.IsNil(o.AccountInfo) {
return nil, false
}
return o.AccountInfo, true
}
// HasAccountInfo returns a boolean if a field has been set.
func (o *CreateCheckoutSessionResponse) HasAccountInfo() bool {
if o != nil && !common.IsNil(o.AccountInfo) {
return true
}
return false
}
// SetAccountInfo gets a reference to the given AccountInfo and assigns it to the AccountInfo field.
func (o *CreateCheckoutSessionResponse) SetAccountInfo(v AccountInfo) {
o.AccountInfo = &v
}
// GetAdditionalAmount returns the AdditionalAmount field value if set, zero value otherwise.
func (o *CreateCheckoutSessionResponse) GetAdditionalAmount() Amount {
if o == nil || common.IsNil(o.AdditionalAmount) {
var ret Amount
return ret
}
return *o.AdditionalAmount
}
// GetAdditionalAmountOk returns a tuple with the AdditionalAmount field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateCheckoutSessionResponse) GetAdditionalAmountOk() (*Amount, bool) {
if o == nil || common.IsNil(o.AdditionalAmount) {
return nil, false
}
return o.AdditionalAmount, true
}
// HasAdditionalAmount returns a boolean if a field has been set.
func (o *CreateCheckoutSessionResponse) HasAdditionalAmount() bool {
if o != nil && !common.IsNil(o.AdditionalAmount) {
return true
}
return false
}
// SetAdditionalAmount gets a reference to the given Amount and assigns it to the AdditionalAmount field.
func (o *CreateCheckoutSessionResponse) SetAdditionalAmount(v Amount) {
o.AdditionalAmount = &v
}
// GetAdditionalData returns the AdditionalData field value if set, zero value otherwise.
func (o *CreateCheckoutSessionResponse) GetAdditionalData() map[string]string {
if o == nil || common.IsNil(o.AdditionalData) {
var ret map[string]string
return ret
}
return *o.AdditionalData
}
// GetAdditionalDataOk returns a tuple with the AdditionalData field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateCheckoutSessionResponse) GetAdditionalDataOk() (*map[string]string, bool) {
if o == nil || common.IsNil(o.AdditionalData) {
return nil, false
}
return o.AdditionalData, true
}
// HasAdditionalData returns a boolean if a field has been set.
func (o *CreateCheckoutSessionResponse) HasAdditionalData() bool {
if o != nil && !common.IsNil(o.AdditionalData) {
return true
}
return false
}
// SetAdditionalData gets a reference to the given map[string]string and assigns it to the AdditionalData field.
func (o *CreateCheckoutSessionResponse) SetAdditionalData(v map[string]string) {
o.AdditionalData = &v
}
// GetAllowedPaymentMethods returns the AllowedPaymentMethods field value if set, zero value otherwise.
func (o *CreateCheckoutSessionResponse) GetAllowedPaymentMethods() []string {
if o == nil || common.IsNil(o.AllowedPaymentMethods) {
var ret []string
return ret
}
return o.AllowedPaymentMethods
}
// GetAllowedPaymentMethodsOk returns a tuple with the AllowedPaymentMethods field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateCheckoutSessionResponse) GetAllowedPaymentMethodsOk() ([]string, bool) {
if o == nil || common.IsNil(o.AllowedPaymentMethods) {
return nil, false
}
return o.AllowedPaymentMethods, true
}
// HasAllowedPaymentMethods returns a boolean if a field has been set.
func (o *CreateCheckoutSessionResponse) HasAllowedPaymentMethods() bool {
if o != nil && !common.IsNil(o.AllowedPaymentMethods) {
return true
}
return false
}
// SetAllowedPaymentMethods gets a reference to the given []string and assigns it to the AllowedPaymentMethods field.
func (o *CreateCheckoutSessionResponse) SetAllowedPaymentMethods(v []string) {
o.AllowedPaymentMethods = v
}
// GetAmount returns the Amount field value
func (o *CreateCheckoutSessionResponse) GetAmount() Amount {
if o == nil {
var ret Amount
return ret
}
return o.Amount
}
// GetAmountOk returns a tuple with the Amount field value
// and a boolean to check if the value has been set.
func (o *CreateCheckoutSessionResponse) GetAmountOk() (*Amount, bool) {
if o == nil {
return nil, false
}
return &o.Amount, true
}
// SetAmount sets field value
func (o *CreateCheckoutSessionResponse) SetAmount(v Amount) {
o.Amount = v
}
// GetApplicationInfo returns the ApplicationInfo field value if set, zero value otherwise.
func (o *CreateCheckoutSessionResponse) GetApplicationInfo() ApplicationInfo {
if o == nil || common.IsNil(o.ApplicationInfo) {
var ret ApplicationInfo
return ret
}
return *o.ApplicationInfo
}
// GetApplicationInfoOk returns a tuple with the ApplicationInfo field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateCheckoutSessionResponse) GetApplicationInfoOk() (*ApplicationInfo, bool) {
if o == nil || common.IsNil(o.ApplicationInfo) {
return nil, false
}
return o.ApplicationInfo, true
}
// HasApplicationInfo returns a boolean if a field has been set.
func (o *CreateCheckoutSessionResponse) HasApplicationInfo() bool {
if o != nil && !common.IsNil(o.ApplicationInfo) {
return true
}
return false
}
// SetApplicationInfo gets a reference to the given ApplicationInfo and assigns it to the ApplicationInfo field.
func (o *CreateCheckoutSessionResponse) SetApplicationInfo(v ApplicationInfo) {
o.ApplicationInfo = &v
}
// GetAuthenticationData returns the AuthenticationData field value if set, zero value otherwise.
func (o *CreateCheckoutSessionResponse) GetAuthenticationData() AuthenticationData {
if o == nil || common.IsNil(o.AuthenticationData) {
var ret AuthenticationData
return ret
}
return *o.AuthenticationData
}
// GetAuthenticationDataOk returns a tuple with the AuthenticationData field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateCheckoutSessionResponse) GetAuthenticationDataOk() (*AuthenticationData, bool) {
if o == nil || common.IsNil(o.AuthenticationData) {
return nil, false
}
return o.AuthenticationData, true
}
// HasAuthenticationData returns a boolean if a field has been set.
func (o *CreateCheckoutSessionResponse) HasAuthenticationData() bool {
if o != nil && !common.IsNil(o.AuthenticationData) {
return true
}
return false
}
// SetAuthenticationData gets a reference to the given AuthenticationData and assigns it to the AuthenticationData field.
func (o *CreateCheckoutSessionResponse) SetAuthenticationData(v AuthenticationData) {
o.AuthenticationData = &v
}
// GetBillingAddress returns the BillingAddress field value if set, zero value otherwise.
func (o *CreateCheckoutSessionResponse) GetBillingAddress() BillingAddress {
if o == nil || common.IsNil(o.BillingAddress) {
var ret BillingAddress
return ret
}
return *o.BillingAddress
}
// GetBillingAddressOk returns a tuple with the BillingAddress field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateCheckoutSessionResponse) GetBillingAddressOk() (*BillingAddress, bool) {
if o == nil || common.IsNil(o.BillingAddress) {
return nil, false
}
return o.BillingAddress, true
}
// HasBillingAddress returns a boolean if a field has been set.
func (o *CreateCheckoutSessionResponse) HasBillingAddress() bool {
if o != nil && !common.IsNil(o.BillingAddress) {
return true
}
return false
}
// SetBillingAddress gets a reference to the given BillingAddress and assigns it to the BillingAddress field.
func (o *CreateCheckoutSessionResponse) SetBillingAddress(v BillingAddress) {
o.BillingAddress = &v
}
// GetBlockedPaymentMethods returns the BlockedPaymentMethods field value if set, zero value otherwise.
func (o *CreateCheckoutSessionResponse) GetBlockedPaymentMethods() []string {
if o == nil || common.IsNil(o.BlockedPaymentMethods) {
var ret []string
return ret
}
return o.BlockedPaymentMethods
}
// GetBlockedPaymentMethodsOk returns a tuple with the BlockedPaymentMethods field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateCheckoutSessionResponse) GetBlockedPaymentMethodsOk() ([]string, bool) {
if o == nil || common.IsNil(o.BlockedPaymentMethods) {
return nil, false
}
return o.BlockedPaymentMethods, true
}
// HasBlockedPaymentMethods returns a boolean if a field has been set.
func (o *CreateCheckoutSessionResponse) HasBlockedPaymentMethods() bool {
if o != nil && !common.IsNil(o.BlockedPaymentMethods) {
return true
}
return false
}
// SetBlockedPaymentMethods gets a reference to the given []string and assigns it to the BlockedPaymentMethods field.
func (o *CreateCheckoutSessionResponse) SetBlockedPaymentMethods(v []string) {
o.BlockedPaymentMethods = v
}
// GetCaptureDelayHours returns the CaptureDelayHours field value if set, zero value otherwise.
func (o *CreateCheckoutSessionResponse) GetCaptureDelayHours() int32 {
if o == nil || common.IsNil(o.CaptureDelayHours) {
var ret int32
return ret
}
return *o.CaptureDelayHours
}
// GetCaptureDelayHoursOk returns a tuple with the CaptureDelayHours field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateCheckoutSessionResponse) GetCaptureDelayHoursOk() (*int32, bool) {
if o == nil || common.IsNil(o.CaptureDelayHours) {
return nil, false
}
return o.CaptureDelayHours, true
}
// HasCaptureDelayHours returns a boolean if a field has been set.
func (o *CreateCheckoutSessionResponse) HasCaptureDelayHours() bool {
if o != nil && !common.IsNil(o.CaptureDelayHours) {
return true
}
return false
}
// SetCaptureDelayHours gets a reference to the given int32 and assigns it to the CaptureDelayHours field.
func (o *CreateCheckoutSessionResponse) SetCaptureDelayHours(v int32) {
o.CaptureDelayHours = &v
}
// GetChannel returns the Channel field value if set, zero value otherwise.
func (o *CreateCheckoutSessionResponse) GetChannel() string {
if o == nil || common.IsNil(o.Channel) {
var ret string
return ret
}
return *o.Channel
}
// GetChannelOk returns a tuple with the Channel field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateCheckoutSessionResponse) GetChannelOk() (*string, bool) {
if o == nil || common.IsNil(o.Channel) {
return nil, false
}
return o.Channel, true
}
// HasChannel returns a boolean if a field has been set.
func (o *CreateCheckoutSessionResponse) HasChannel() bool {
if o != nil && !common.IsNil(o.Channel) {
return true
}
return false
}
// SetChannel gets a reference to the given string and assigns it to the Channel field.
func (o *CreateCheckoutSessionResponse) SetChannel(v string) {
o.Channel = &v
}
// GetCompany returns the Company field value if set, zero value otherwise.
func (o *CreateCheckoutSessionResponse) GetCompany() Company {
if o == nil || common.IsNil(o.Company) {
var ret Company
return ret
}
return *o.Company
}
// GetCompanyOk returns a tuple with the Company field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateCheckoutSessionResponse) GetCompanyOk() (*Company, bool) {
if o == nil || common.IsNil(o.Company) {
return nil, false
}
return o.Company, true
}
// HasCompany returns a boolean if a field has been set.
func (o *CreateCheckoutSessionResponse) HasCompany() bool {
if o != nil && !common.IsNil(o.Company) {
return true
}
return false
}
// SetCompany gets a reference to the given Company and assigns it to the Company field.
func (o *CreateCheckoutSessionResponse) SetCompany(v Company) {
o.Company = &v
}
// GetCountryCode returns the CountryCode field value if set, zero value otherwise.
func (o *CreateCheckoutSessionResponse) GetCountryCode() string {
if o == nil || common.IsNil(o.CountryCode) {
var ret string
return ret
}
return *o.CountryCode
}
// GetCountryCodeOk returns a tuple with the CountryCode field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateCheckoutSessionResponse) GetCountryCodeOk() (*string, bool) {
if o == nil || common.IsNil(o.CountryCode) {
return nil, false
}
return o.CountryCode, true
}
// HasCountryCode returns a boolean if a field has been set.
func (o *CreateCheckoutSessionResponse) HasCountryCode() bool {
if o != nil && !common.IsNil(o.CountryCode) {
return true
}
return false
}
// SetCountryCode gets a reference to the given string and assigns it to the CountryCode field.
func (o *CreateCheckoutSessionResponse) SetCountryCode(v string) {
o.CountryCode = &v
}
// GetDateOfBirth returns the DateOfBirth field value if set, zero value otherwise.
func (o *CreateCheckoutSessionResponse) GetDateOfBirth() time.Time {
if o == nil || common.IsNil(o.DateOfBirth) {
var ret time.Time
return ret
}
return *o.DateOfBirth
}
// GetDateOfBirthOk returns a tuple with the DateOfBirth field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateCheckoutSessionResponse) GetDateOfBirthOk() (*time.Time, bool) {
if o == nil || common.IsNil(o.DateOfBirth) {
return nil, false
}
return o.DateOfBirth, true
}
// HasDateOfBirth returns a boolean if a field has been set.
func (o *CreateCheckoutSessionResponse) HasDateOfBirth() bool {
if o != nil && !common.IsNil(o.DateOfBirth) {
return true
}
return false
}
// SetDateOfBirth gets a reference to the given time.Time and assigns it to the DateOfBirth field.
func (o *CreateCheckoutSessionResponse) SetDateOfBirth(v time.Time) {
o.DateOfBirth = &v
}
// GetDeliverAt returns the DeliverAt field value if set, zero value otherwise.
func (o *CreateCheckoutSessionResponse) GetDeliverAt() time.Time {
if o == nil || common.IsNil(o.DeliverAt) {
var ret time.Time
return ret
}
return *o.DeliverAt
}
// GetDeliverAtOk returns a tuple with the DeliverAt field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateCheckoutSessionResponse) GetDeliverAtOk() (*time.Time, bool) {
if o == nil || common.IsNil(o.DeliverAt) {
return nil, false
}
return o.DeliverAt, true
}
// HasDeliverAt returns a boolean if a field has been set.
func (o *CreateCheckoutSessionResponse) HasDeliverAt() bool {
if o != nil && !common.IsNil(o.DeliverAt) {
return true
}
return false
}
// SetDeliverAt gets a reference to the given time.Time and assigns it to the DeliverAt field.
func (o *CreateCheckoutSessionResponse) SetDeliverAt(v time.Time) {
o.DeliverAt = &v
}
// GetDeliveryAddress returns the DeliveryAddress field value if set, zero value otherwise.
func (o *CreateCheckoutSessionResponse) GetDeliveryAddress() DeliveryAddress {
if o == nil || common.IsNil(o.DeliveryAddress) {
var ret DeliveryAddress
return ret
}
return *o.DeliveryAddress
}
// GetDeliveryAddressOk returns a tuple with the DeliveryAddress field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateCheckoutSessionResponse) GetDeliveryAddressOk() (*DeliveryAddress, bool) {
if o == nil || common.IsNil(o.DeliveryAddress) {
return nil, false
}
return o.DeliveryAddress, true
}
// HasDeliveryAddress returns a boolean if a field has been set.
func (o *CreateCheckoutSessionResponse) HasDeliveryAddress() bool {
if o != nil && !common.IsNil(o.DeliveryAddress) {
return true
}
return false
}
// SetDeliveryAddress gets a reference to the given DeliveryAddress and assigns it to the DeliveryAddress field.
func (o *CreateCheckoutSessionResponse) SetDeliveryAddress(v DeliveryAddress) {
o.DeliveryAddress = &v
}
// GetEnableOneClick returns the EnableOneClick field value if set, zero value otherwise.
func (o *CreateCheckoutSessionResponse) GetEnableOneClick() bool {
if o == nil || common.IsNil(o.EnableOneClick) {
var ret bool
return ret
}
return *o.EnableOneClick
}
// GetEnableOneClickOk returns a tuple with the EnableOneClick field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateCheckoutSessionResponse) GetEnableOneClickOk() (*bool, bool) {
if o == nil || common.IsNil(o.EnableOneClick) {
return nil, false
}
return o.EnableOneClick, true
}
// HasEnableOneClick returns a boolean if a field has been set.
func (o *CreateCheckoutSessionResponse) HasEnableOneClick() bool {
if o != nil && !common.IsNil(o.EnableOneClick) {
return true
}
return false
}
// SetEnableOneClick gets a reference to the given bool and assigns it to the EnableOneClick field.
func (o *CreateCheckoutSessionResponse) SetEnableOneClick(v bool) {
o.EnableOneClick = &v
}
// GetEnablePayOut returns the EnablePayOut field value if set, zero value otherwise.
func (o *CreateCheckoutSessionResponse) GetEnablePayOut() bool {
if o == nil || common.IsNil(o.EnablePayOut) {
var ret bool
return ret
}
return *o.EnablePayOut
}
// GetEnablePayOutOk returns a tuple with the EnablePayOut field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateCheckoutSessionResponse) GetEnablePayOutOk() (*bool, bool) {
if o == nil || common.IsNil(o.EnablePayOut) {
return nil, false
}
return o.EnablePayOut, true
}
// HasEnablePayOut returns a boolean if a field has been set.
func (o *CreateCheckoutSessionResponse) HasEnablePayOut() bool {
if o != nil && !common.IsNil(o.EnablePayOut) {
return true
}
return false
}
// SetEnablePayOut gets a reference to the given bool and assigns it to the EnablePayOut field.
func (o *CreateCheckoutSessionResponse) SetEnablePayOut(v bool) {
o.EnablePayOut = &v
}
// GetEnableRecurring returns the EnableRecurring field value if set, zero value otherwise.
func (o *CreateCheckoutSessionResponse) GetEnableRecurring() bool {
if o == nil || common.IsNil(o.EnableRecurring) {
var ret bool
return ret
}
return *o.EnableRecurring
}
// GetEnableRecurringOk returns a tuple with the EnableRecurring field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateCheckoutSessionResponse) GetEnableRecurringOk() (*bool, bool) {
if o == nil || common.IsNil(o.EnableRecurring) {
return nil, false
}
return o.EnableRecurring, true
}
// HasEnableRecurring returns a boolean if a field has been set.
func (o *CreateCheckoutSessionResponse) HasEnableRecurring() bool {
if o != nil && !common.IsNil(o.EnableRecurring) {
return true
}
return false
}
// SetEnableRecurring gets a reference to the given bool and assigns it to the EnableRecurring field.
func (o *CreateCheckoutSessionResponse) SetEnableRecurring(v bool) {
o.EnableRecurring = &v
}
// GetExpiresAt returns the ExpiresAt field value
func (o *CreateCheckoutSessionResponse) GetExpiresAt() time.Time {
if o == nil {
var ret time.Time
return ret
}
return o.ExpiresAt
}
// GetExpiresAtOk returns a tuple with the ExpiresAt field value
// and a boolean to check if the value has been set.
func (o *CreateCheckoutSessionResponse) GetExpiresAtOk() (*time.Time, bool) {
if o == nil {
return nil, false
}
return &o.ExpiresAt, true
}
// SetExpiresAt sets field value
func (o *CreateCheckoutSessionResponse) SetExpiresAt(v time.Time) {
o.ExpiresAt = v
}
// GetFundOrigin returns the FundOrigin field value if set, zero value otherwise.
func (o *CreateCheckoutSessionResponse) GetFundOrigin() FundOrigin {
if o == nil || common.IsNil(o.FundOrigin) {
var ret FundOrigin
return ret
}
return *o.FundOrigin
}
// GetFundOriginOk returns a tuple with the FundOrigin field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateCheckoutSessionResponse) GetFundOriginOk() (*FundOrigin, bool) {
if o == nil || common.IsNil(o.FundOrigin) {
return nil, false
}
return o.FundOrigin, true
}
// HasFundOrigin returns a boolean if a field has been set.
func (o *CreateCheckoutSessionResponse) HasFundOrigin() bool {
if o != nil && !common.IsNil(o.FundOrigin) {
return true
}
return false
}
// SetFundOrigin gets a reference to the given FundOrigin and assigns it to the FundOrigin field.
func (o *CreateCheckoutSessionResponse) SetFundOrigin(v FundOrigin) {
o.FundOrigin = &v
}
// GetFundRecipient returns the FundRecipient field value if set, zero value otherwise.
func (o *CreateCheckoutSessionResponse) GetFundRecipient() FundRecipient {
if o == nil || common.IsNil(o.FundRecipient) {
var ret FundRecipient
return ret
}
return *o.FundRecipient
}
// GetFundRecipientOk returns a tuple with the FundRecipient field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateCheckoutSessionResponse) GetFundRecipientOk() (*FundRecipient, bool) {
if o == nil || common.IsNil(o.FundRecipient) {
return nil, false
}
return o.FundRecipient, true
}
// HasFundRecipient returns a boolean if a field has been set.
func (o *CreateCheckoutSessionResponse) HasFundRecipient() bool {
if o != nil && !common.IsNil(o.FundRecipient) {
return true
}
return false
}
// SetFundRecipient gets a reference to the given FundRecipient and assigns it to the FundRecipient field.
func (o *CreateCheckoutSessionResponse) SetFundRecipient(v FundRecipient) {
o.FundRecipient = &v
}
// GetId returns the Id field value
func (o *CreateCheckoutSessionResponse) GetId() string {
if o == nil {
var ret string
return ret
}
return o.Id
}
// GetIdOk returns a tuple with the Id field value
// and a boolean to check if the value has been set.
func (o *CreateCheckoutSessionResponse) GetIdOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.Id, true
}
// SetId sets field value
func (o *CreateCheckoutSessionResponse) SetId(v string) {
o.Id = v
}
// GetInstallmentOptions returns the InstallmentOptions field value if set, zero value otherwise.
func (o *CreateCheckoutSessionResponse) GetInstallmentOptions() map[string]CheckoutSessionInstallmentOption {
if o == nil || common.IsNil(o.InstallmentOptions) {
var ret map[string]CheckoutSessionInstallmentOption
return ret
}
return *o.InstallmentOptions
}
// GetInstallmentOptionsOk returns a tuple with the InstallmentOptions field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateCheckoutSessionResponse) GetInstallmentOptionsOk() (*map[string]CheckoutSessionInstallmentOption, bool) {
if o == nil || common.IsNil(o.InstallmentOptions) {
return nil, false
}
return o.InstallmentOptions, true
}
// HasInstallmentOptions returns a boolean if a field has been set.
func (o *CreateCheckoutSessionResponse) HasInstallmentOptions() bool {
if o != nil && !common.IsNil(o.InstallmentOptions) {
return true
}
return false
}
// SetInstallmentOptions gets a reference to the given map[string]CheckoutSessionInstallmentOption and assigns it to the InstallmentOptions field.
func (o *CreateCheckoutSessionResponse) SetInstallmentOptions(v map[string]CheckoutSessionInstallmentOption) {
o.InstallmentOptions = &v
}
// GetLineItems returns the LineItems field value if set, zero value otherwise.
func (o *CreateCheckoutSessionResponse) GetLineItems() []LineItem {
if o == nil || common.IsNil(o.LineItems) {
var ret []LineItem
return ret
}
return o.LineItems
}
// GetLineItemsOk returns a tuple with the LineItems field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateCheckoutSessionResponse) GetLineItemsOk() ([]LineItem, bool) {
if o == nil || common.IsNil(o.LineItems) {
return nil, false
}
return o.LineItems, true
}
// HasLineItems returns a boolean if a field has been set.
func (o *CreateCheckoutSessionResponse) HasLineItems() bool {
if o != nil && !common.IsNil(o.LineItems) {
return true
}
return false
}
// SetLineItems gets a reference to the given []LineItem and assigns it to the LineItems field.
func (o *CreateCheckoutSessionResponse) SetLineItems(v []LineItem) {
o.LineItems = v
}
// GetMandate returns the Mandate field value if set, zero value otherwise.
func (o *CreateCheckoutSessionResponse) GetMandate() Mandate {
if o == nil || common.IsNil(o.Mandate) {
var ret Mandate
return ret
}
return *o.Mandate
}
// GetMandateOk returns a tuple with the Mandate field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateCheckoutSessionResponse) GetMandateOk() (*Mandate, bool) {
if o == nil || common.IsNil(o.Mandate) {
return nil, false
}
return o.Mandate, true
}
// HasMandate returns a boolean if a field has been set.
func (o *CreateCheckoutSessionResponse) HasMandate() bool {
if o != nil && !common.IsNil(o.Mandate) {
return true
}
return false
}
// SetMandate gets a reference to the given Mandate and assigns it to the Mandate field.
func (o *CreateCheckoutSessionResponse) SetMandate(v Mandate) {
o.Mandate = &v
}
// GetMcc returns the Mcc field value if set, zero value otherwise.
func (o *CreateCheckoutSessionResponse) GetMcc() string {
if o == nil || common.IsNil(o.Mcc) {
var ret string
return ret
}
return *o.Mcc
}
// GetMccOk returns a tuple with the Mcc field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateCheckoutSessionResponse) GetMccOk() (*string, bool) {
if o == nil || common.IsNil(o.Mcc) {
return nil, false
}
return o.Mcc, true
}
// HasMcc returns a boolean if a field has been set.
func (o *CreateCheckoutSessionResponse) HasMcc() bool {
if o != nil && !common.IsNil(o.Mcc) {
return true
}
return false