-
Notifications
You must be signed in to change notification settings - Fork 28
/
model_payment_link_response.go
1619 lines (1395 loc) · 54.8 KB
/
model_payment_link_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 PaymentLinkResponse type satisfies the MappedNullable interface at compile time
var _ common.MappedNullable = &PaymentLinkResponse{}
// PaymentLinkResponse struct for PaymentLinkResponse
type PaymentLinkResponse struct {
// 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"`
BillingAddress *Address `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 shopper's two-letter country code.
CountryCode *string `json:"countryCode,omitempty"`
// The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD
DateOfBirth *string `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 *Address `json:"deliveryAddress,omitempty"`
// A short description visible on the payment page. Maximum length: 280 characters.
Description *string `json:"description,omitempty"`
// The date when the payment link expires. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format with time zone offset: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. The maximum expiry date is 70 days after the payment link is created. If not provided, the payment link expires 24 hours after it was created.
ExpiresAt *time.Time `json:"expiresAt,omitempty"`
// A unique identifier of the payment link.
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]InstallmentOption `json:"installmentOptions,omitempty"`
// Price and product information about the purchased items, to be included on the invoice sent to the shopper. This parameter is required for open invoice (_buy now, pay later_) payment methods such Afterpay, Clearpay, Klarna, RatePay, and Zip.
LineItems []LineItem `json:"lineItems,omitempty"`
// Indicates if the payment must be [captured manually](https://docs.adyen.com/online-payments/capture).
ManualCapture *bool `json:"manualCapture,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 for which the payment link is created.
MerchantAccount string `json:"merchantAccount"`
// This reference allows linking multiple transactions to each other for reporting purposes (for example, order auth-rate). The reference should be unique per billing cycle.
MerchantOrderReference *string `json:"merchantOrderReference,omitempty"`
// Metadata consists of entries, each of which includes a key and a value. Limitations: * Maximum 20 key-value pairs per request. Otherwise, error \"177\" occurs: \"Metadata size exceeds limit\" * Maximum 20 characters per key. Otherwise, error \"178\" occurs: \"Metadata key size exceeds limit\" * A key cannot have the name `checkout.linkId`. Any value that you provide with this key is going to be replaced by the real payment link ID.
Metadata *map[string]string `json:"metadata,omitempty"`
// Defines a recurring payment type. Required when `storePaymentMethodMode` is set to **askForConsent** or **enabled**. Possible 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 has variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount.
RecurringProcessingModel *string `json:"recurringProcessingModel,omitempty"`
// A reference that is used to uniquely identify the payment in future communications about the payment status.
Reference string `json:"reference"`
// List of fields that the shopper has to provide on the payment page before completing the payment. For more information, refer to [Provide shopper information](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#shopper-information). Possible values: * **billingAddress** – The address where to send the invoice. * **deliveryAddress** – The address where the purchased goods should be delivered. * **shopperEmail** – The shopper's email address. * **shopperName** – The shopper's full name. * **telephoneNumber** – The shopper's phone number.
RequiredShopperFields []string `json:"requiredShopperFields,omitempty"`
// Website URL used for redirection after payment is completed. If provided, a **Continue** button will be shown on the payment page. If shoppers select the button, they are redirected to the specified URL.
ReturnUrl *string `json:"returnUrl,omitempty"`
// Indicates whether the payment link can be reused for multiple payments. If not provided, this defaults to **false** which means the link can be used for one successful payment only.
Reusable *bool `json:"reusable,omitempty"`
RiskData *RiskData `json:"riskData,omitempty"`
// The shopper's email address.
ShopperEmail *string `json:"shopperEmail,omitempty"`
// The language to be used in the payment page, specified by a combination of a language and country code. For example, `en-US`. For a list of shopper locales that Pay by Link supports, refer to [Language and localization](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#language).
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 **false** to hide the button that lets the shopper remove a stored payment method.
ShowRemovePaymentMethodButton *bool `json:"showRemovePaymentMethodButton,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"`
// Status of the payment link. Possible values: * **active**: The link can be used to make payments. * **expired**: The expiry date for the payment link has passed. Shoppers can no longer use the link to make payments. * **completed**: The shopper completed the payment. * **paymentPending**: The shopper is in the process of making the payment. Applies to payment methods with an asynchronous flow.
Status string `json:"status"`
// The physical store, for which this payment is processed.
Store *string `json:"store,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. When set to **askForConsent** or **enabled**, you must also include the `recurringProcessingModel` parameter.
StorePaymentMethodMode *string `json:"storePaymentMethodMode,omitempty"`
// The shopper's telephone number.
TelephoneNumber *string `json:"telephoneNumber,omitempty"`
// A [theme](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#themes) to customize the appearance of the payment page. If not specified, the payment page is rendered according to the theme set as default in your Customer Area.
ThemeId *string `json:"themeId,omitempty"`
// The date when the payment link status was updated. [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**.
UpdatedAt *time.Time `json:"updatedAt,omitempty"`
// The URL at which the shopper can complete the payment.
Url string `json:"url"`
}
// NewPaymentLinkResponse instantiates a new PaymentLinkResponse 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 NewPaymentLinkResponse(amount Amount, id string, merchantAccount string, reference string, status string, url string) *PaymentLinkResponse {
this := PaymentLinkResponse{}
this.Amount = amount
this.Id = id
this.MerchantAccount = merchantAccount
this.Reference = reference
var showRemovePaymentMethodButton bool = true
this.ShowRemovePaymentMethodButton = &showRemovePaymentMethodButton
var splitCardFundingSources bool = false
this.SplitCardFundingSources = &splitCardFundingSources
this.Status = status
this.Url = url
return &this
}
// NewPaymentLinkResponseWithDefaults instantiates a new PaymentLinkResponse 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 NewPaymentLinkResponseWithDefaults() *PaymentLinkResponse {
this := PaymentLinkResponse{}
var showRemovePaymentMethodButton bool = true
this.ShowRemovePaymentMethodButton = &showRemovePaymentMethodButton
var splitCardFundingSources bool = false
this.SplitCardFundingSources = &splitCardFundingSources
return &this
}
// GetAllowedPaymentMethods returns the AllowedPaymentMethods field value if set, zero value otherwise.
func (o *PaymentLinkResponse) 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 *PaymentLinkResponse) 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 *PaymentLinkResponse) 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 *PaymentLinkResponse) SetAllowedPaymentMethods(v []string) {
o.AllowedPaymentMethods = v
}
// GetAmount returns the Amount field value
func (o *PaymentLinkResponse) 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 *PaymentLinkResponse) GetAmountOk() (*Amount, bool) {
if o == nil {
return nil, false
}
return &o.Amount, true
}
// SetAmount sets field value
func (o *PaymentLinkResponse) SetAmount(v Amount) {
o.Amount = v
}
// GetApplicationInfo returns the ApplicationInfo field value if set, zero value otherwise.
func (o *PaymentLinkResponse) 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 *PaymentLinkResponse) 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 *PaymentLinkResponse) 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 *PaymentLinkResponse) SetApplicationInfo(v ApplicationInfo) {
o.ApplicationInfo = &v
}
// GetBillingAddress returns the BillingAddress field value if set, zero value otherwise.
func (o *PaymentLinkResponse) GetBillingAddress() Address {
if o == nil || common.IsNil(o.BillingAddress) {
var ret Address
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 *PaymentLinkResponse) GetBillingAddressOk() (*Address, 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 *PaymentLinkResponse) HasBillingAddress() bool {
if o != nil && !common.IsNil(o.BillingAddress) {
return true
}
return false
}
// SetBillingAddress gets a reference to the given Address and assigns it to the BillingAddress field.
func (o *PaymentLinkResponse) SetBillingAddress(v Address) {
o.BillingAddress = &v
}
// GetBlockedPaymentMethods returns the BlockedPaymentMethods field value if set, zero value otherwise.
func (o *PaymentLinkResponse) 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 *PaymentLinkResponse) 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 *PaymentLinkResponse) 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 *PaymentLinkResponse) SetBlockedPaymentMethods(v []string) {
o.BlockedPaymentMethods = v
}
// GetCaptureDelayHours returns the CaptureDelayHours field value if set, zero value otherwise.
func (o *PaymentLinkResponse) 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 *PaymentLinkResponse) 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 *PaymentLinkResponse) 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 *PaymentLinkResponse) SetCaptureDelayHours(v int32) {
o.CaptureDelayHours = &v
}
// GetCountryCode returns the CountryCode field value if set, zero value otherwise.
func (o *PaymentLinkResponse) 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 *PaymentLinkResponse) 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 *PaymentLinkResponse) 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 *PaymentLinkResponse) SetCountryCode(v string) {
o.CountryCode = &v
}
// GetDateOfBirth returns the DateOfBirth field value if set, zero value otherwise.
func (o *PaymentLinkResponse) GetDateOfBirth() string {
if o == nil || common.IsNil(o.DateOfBirth) {
var ret string
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 *PaymentLinkResponse) GetDateOfBirthOk() (*string, 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 *PaymentLinkResponse) HasDateOfBirth() bool {
if o != nil && !common.IsNil(o.DateOfBirth) {
return true
}
return false
}
// SetDateOfBirth gets a reference to the given string and assigns it to the DateOfBirth field.
func (o *PaymentLinkResponse) SetDateOfBirth(v string) {
o.DateOfBirth = &v
}
// GetDeliverAt returns the DeliverAt field value if set, zero value otherwise.
func (o *PaymentLinkResponse) 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 *PaymentLinkResponse) 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 *PaymentLinkResponse) 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 *PaymentLinkResponse) SetDeliverAt(v time.Time) {
o.DeliverAt = &v
}
// GetDeliveryAddress returns the DeliveryAddress field value if set, zero value otherwise.
func (o *PaymentLinkResponse) GetDeliveryAddress() Address {
if o == nil || common.IsNil(o.DeliveryAddress) {
var ret Address
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 *PaymentLinkResponse) GetDeliveryAddressOk() (*Address, 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 *PaymentLinkResponse) HasDeliveryAddress() bool {
if o != nil && !common.IsNil(o.DeliveryAddress) {
return true
}
return false
}
// SetDeliveryAddress gets a reference to the given Address and assigns it to the DeliveryAddress field.
func (o *PaymentLinkResponse) SetDeliveryAddress(v Address) {
o.DeliveryAddress = &v
}
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *PaymentLinkResponse) GetDescription() string {
if o == nil || common.IsNil(o.Description) {
var ret string
return ret
}
return *o.Description
}
// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PaymentLinkResponse) GetDescriptionOk() (*string, bool) {
if o == nil || common.IsNil(o.Description) {
return nil, false
}
return o.Description, true
}
// HasDescription returns a boolean if a field has been set.
func (o *PaymentLinkResponse) HasDescription() bool {
if o != nil && !common.IsNil(o.Description) {
return true
}
return false
}
// SetDescription gets a reference to the given string and assigns it to the Description field.
func (o *PaymentLinkResponse) SetDescription(v string) {
o.Description = &v
}
// GetExpiresAt returns the ExpiresAt field value if set, zero value otherwise.
func (o *PaymentLinkResponse) GetExpiresAt() time.Time {
if o == nil || common.IsNil(o.ExpiresAt) {
var ret time.Time
return ret
}
return *o.ExpiresAt
}
// GetExpiresAtOk returns a tuple with the ExpiresAt field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PaymentLinkResponse) GetExpiresAtOk() (*time.Time, bool) {
if o == nil || common.IsNil(o.ExpiresAt) {
return nil, false
}
return o.ExpiresAt, true
}
// HasExpiresAt returns a boolean if a field has been set.
func (o *PaymentLinkResponse) HasExpiresAt() bool {
if o != nil && !common.IsNil(o.ExpiresAt) {
return true
}
return false
}
// SetExpiresAt gets a reference to the given time.Time and assigns it to the ExpiresAt field.
func (o *PaymentLinkResponse) SetExpiresAt(v time.Time) {
o.ExpiresAt = &v
}
// GetId returns the Id field value
func (o *PaymentLinkResponse) 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 *PaymentLinkResponse) GetIdOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.Id, true
}
// SetId sets field value
func (o *PaymentLinkResponse) SetId(v string) {
o.Id = v
}
// GetInstallmentOptions returns the InstallmentOptions field value if set, zero value otherwise.
func (o *PaymentLinkResponse) GetInstallmentOptions() map[string]InstallmentOption {
if o == nil || common.IsNil(o.InstallmentOptions) {
var ret map[string]InstallmentOption
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 *PaymentLinkResponse) GetInstallmentOptionsOk() (*map[string]InstallmentOption, 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 *PaymentLinkResponse) HasInstallmentOptions() bool {
if o != nil && !common.IsNil(o.InstallmentOptions) {
return true
}
return false
}
// SetInstallmentOptions gets a reference to the given map[string]InstallmentOption and assigns it to the InstallmentOptions field.
func (o *PaymentLinkResponse) SetInstallmentOptions(v map[string]InstallmentOption) {
o.InstallmentOptions = &v
}
// GetLineItems returns the LineItems field value if set, zero value otherwise.
func (o *PaymentLinkResponse) 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 *PaymentLinkResponse) 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 *PaymentLinkResponse) 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 *PaymentLinkResponse) SetLineItems(v []LineItem) {
o.LineItems = v
}
// GetManualCapture returns the ManualCapture field value if set, zero value otherwise.
func (o *PaymentLinkResponse) GetManualCapture() bool {
if o == nil || common.IsNil(o.ManualCapture) {
var ret bool
return ret
}
return *o.ManualCapture
}
// GetManualCaptureOk returns a tuple with the ManualCapture field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PaymentLinkResponse) GetManualCaptureOk() (*bool, bool) {
if o == nil || common.IsNil(o.ManualCapture) {
return nil, false
}
return o.ManualCapture, true
}
// HasManualCapture returns a boolean if a field has been set.
func (o *PaymentLinkResponse) HasManualCapture() bool {
if o != nil && !common.IsNil(o.ManualCapture) {
return true
}
return false
}
// SetManualCapture gets a reference to the given bool and assigns it to the ManualCapture field.
func (o *PaymentLinkResponse) SetManualCapture(v bool) {
o.ManualCapture = &v
}
// GetMcc returns the Mcc field value if set, zero value otherwise.
func (o *PaymentLinkResponse) 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 *PaymentLinkResponse) 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 *PaymentLinkResponse) HasMcc() bool {
if o != nil && !common.IsNil(o.Mcc) {
return true
}
return false
}
// SetMcc gets a reference to the given string and assigns it to the Mcc field.
func (o *PaymentLinkResponse) SetMcc(v string) {
o.Mcc = &v
}
// GetMerchantAccount returns the MerchantAccount field value
func (o *PaymentLinkResponse) GetMerchantAccount() string {
if o == nil {
var ret string
return ret
}
return o.MerchantAccount
}
// GetMerchantAccountOk returns a tuple with the MerchantAccount field value
// and a boolean to check if the value has been set.
func (o *PaymentLinkResponse) GetMerchantAccountOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.MerchantAccount, true
}
// SetMerchantAccount sets field value
func (o *PaymentLinkResponse) SetMerchantAccount(v string) {
o.MerchantAccount = v
}
// GetMerchantOrderReference returns the MerchantOrderReference field value if set, zero value otherwise.
func (o *PaymentLinkResponse) GetMerchantOrderReference() string {
if o == nil || common.IsNil(o.MerchantOrderReference) {
var ret string
return ret
}
return *o.MerchantOrderReference
}
// GetMerchantOrderReferenceOk returns a tuple with the MerchantOrderReference field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PaymentLinkResponse) GetMerchantOrderReferenceOk() (*string, bool) {
if o == nil || common.IsNil(o.MerchantOrderReference) {
return nil, false
}
return o.MerchantOrderReference, true
}
// HasMerchantOrderReference returns a boolean if a field has been set.
func (o *PaymentLinkResponse) HasMerchantOrderReference() bool {
if o != nil && !common.IsNil(o.MerchantOrderReference) {
return true
}
return false
}
// SetMerchantOrderReference gets a reference to the given string and assigns it to the MerchantOrderReference field.
func (o *PaymentLinkResponse) SetMerchantOrderReference(v string) {
o.MerchantOrderReference = &v
}
// GetMetadata returns the Metadata field value if set, zero value otherwise.
func (o *PaymentLinkResponse) GetMetadata() map[string]string {
if o == nil || common.IsNil(o.Metadata) {
var ret map[string]string
return ret
}
return *o.Metadata
}
// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PaymentLinkResponse) GetMetadataOk() (*map[string]string, bool) {
if o == nil || common.IsNil(o.Metadata) {
return nil, false
}
return o.Metadata, true
}
// HasMetadata returns a boolean if a field has been set.
func (o *PaymentLinkResponse) HasMetadata() bool {
if o != nil && !common.IsNil(o.Metadata) {
return true
}
return false
}
// SetMetadata gets a reference to the given map[string]string and assigns it to the Metadata field.
func (o *PaymentLinkResponse) SetMetadata(v map[string]string) {
o.Metadata = &v
}
// GetRecurringProcessingModel returns the RecurringProcessingModel field value if set, zero value otherwise.
func (o *PaymentLinkResponse) GetRecurringProcessingModel() string {
if o == nil || common.IsNil(o.RecurringProcessingModel) {
var ret string
return ret
}
return *o.RecurringProcessingModel
}
// GetRecurringProcessingModelOk returns a tuple with the RecurringProcessingModel field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PaymentLinkResponse) GetRecurringProcessingModelOk() (*string, bool) {
if o == nil || common.IsNil(o.RecurringProcessingModel) {
return nil, false
}
return o.RecurringProcessingModel, true
}
// HasRecurringProcessingModel returns a boolean if a field has been set.
func (o *PaymentLinkResponse) HasRecurringProcessingModel() bool {
if o != nil && !common.IsNil(o.RecurringProcessingModel) {
return true
}
return false
}
// SetRecurringProcessingModel gets a reference to the given string and assigns it to the RecurringProcessingModel field.
func (o *PaymentLinkResponse) SetRecurringProcessingModel(v string) {
o.RecurringProcessingModel = &v
}
// GetReference returns the Reference field value
func (o *PaymentLinkResponse) GetReference() string {
if o == nil {
var ret string
return ret
}
return o.Reference
}
// GetReferenceOk returns a tuple with the Reference field value
// and a boolean to check if the value has been set.
func (o *PaymentLinkResponse) GetReferenceOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.Reference, true
}
// SetReference sets field value
func (o *PaymentLinkResponse) SetReference(v string) {
o.Reference = v
}
// GetRequiredShopperFields returns the RequiredShopperFields field value if set, zero value otherwise.
func (o *PaymentLinkResponse) GetRequiredShopperFields() []string {
if o == nil || common.IsNil(o.RequiredShopperFields) {
var ret []string
return ret
}
return o.RequiredShopperFields
}
// GetRequiredShopperFieldsOk returns a tuple with the RequiredShopperFields field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PaymentLinkResponse) GetRequiredShopperFieldsOk() ([]string, bool) {
if o == nil || common.IsNil(o.RequiredShopperFields) {
return nil, false
}
return o.RequiredShopperFields, true
}
// HasRequiredShopperFields returns a boolean if a field has been set.
func (o *PaymentLinkResponse) HasRequiredShopperFields() bool {
if o != nil && !common.IsNil(o.RequiredShopperFields) {
return true
}
return false
}
// SetRequiredShopperFields gets a reference to the given []string and assigns it to the RequiredShopperFields field.
func (o *PaymentLinkResponse) SetRequiredShopperFields(v []string) {
o.RequiredShopperFields = v
}
// GetReturnUrl returns the ReturnUrl field value if set, zero value otherwise.
func (o *PaymentLinkResponse) GetReturnUrl() string {
if o == nil || common.IsNil(o.ReturnUrl) {
var ret string
return ret
}
return *o.ReturnUrl
}
// GetReturnUrlOk returns a tuple with the ReturnUrl field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PaymentLinkResponse) GetReturnUrlOk() (*string, bool) {
if o == nil || common.IsNil(o.ReturnUrl) {
return nil, false
}
return o.ReturnUrl, true
}
// HasReturnUrl returns a boolean if a field has been set.
func (o *PaymentLinkResponse) HasReturnUrl() bool {
if o != nil && !common.IsNil(o.ReturnUrl) {
return true
}
return false
}
// SetReturnUrl gets a reference to the given string and assigns it to the ReturnUrl field.
func (o *PaymentLinkResponse) SetReturnUrl(v string) {
o.ReturnUrl = &v
}
// GetReusable returns the Reusable field value if set, zero value otherwise.
func (o *PaymentLinkResponse) GetReusable() bool {
if o == nil || common.IsNil(o.Reusable) {
var ret bool
return ret
}
return *o.Reusable
}
// GetReusableOk returns a tuple with the Reusable field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PaymentLinkResponse) GetReusableOk() (*bool, bool) {
if o == nil || common.IsNil(o.Reusable) {
return nil, false
}
return o.Reusable, true
}
// HasReusable returns a boolean if a field has been set.
func (o *PaymentLinkResponse) HasReusable() bool {
if o != nil && !common.IsNil(o.Reusable) {
return true
}
return false
}
// SetReusable gets a reference to the given bool and assigns it to the Reusable field.
func (o *PaymentLinkResponse) SetReusable(v bool) {
o.Reusable = &v
}
// GetRiskData returns the RiskData field value if set, zero value otherwise.
func (o *PaymentLinkResponse) GetRiskData() RiskData {
if o == nil || common.IsNil(o.RiskData) {
var ret RiskData
return ret
}
return *o.RiskData
}
// GetRiskDataOk returns a tuple with the RiskData field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PaymentLinkResponse) GetRiskDataOk() (*RiskData, bool) {
if o == nil || common.IsNil(o.RiskData) {
return nil, false
}
return o.RiskData, true
}
// HasRiskData returns a boolean if a field has been set.
func (o *PaymentLinkResponse) HasRiskData() bool {
if o != nil && !common.IsNil(o.RiskData) {
return true
}
return false
}
// SetRiskData gets a reference to the given RiskData and assigns it to the RiskData field.
func (o *PaymentLinkResponse) SetRiskData(v RiskData) {
o.RiskData = &v
}
// GetShopperEmail returns the ShopperEmail field value if set, zero value otherwise.
func (o *PaymentLinkResponse) GetShopperEmail() string {
if o == nil || common.IsNil(o.ShopperEmail) {
var ret string
return ret
}
return *o.ShopperEmail
}
// GetShopperEmailOk returns a tuple with the ShopperEmail field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PaymentLinkResponse) GetShopperEmailOk() (*string, bool) {
if o == nil || common.IsNil(o.ShopperEmail) {
return nil, false
}
return o.ShopperEmail, true
}
// HasShopperEmail returns a boolean if a field has been set.
func (o *PaymentLinkResponse) HasShopperEmail() bool {
if o != nil && !common.IsNil(o.ShopperEmail) {
return true
}
return false
}
// SetShopperEmail gets a reference to the given string and assigns it to the ShopperEmail field.
func (o *PaymentLinkResponse) SetShopperEmail(v string) {
o.ShopperEmail = &v
}
// GetShopperLocale returns the ShopperLocale field value if set, zero value otherwise.
func (o *PaymentLinkResponse) GetShopperLocale() string {
if o == nil || common.IsNil(o.ShopperLocale) {
var ret string
return ret
}
return *o.ShopperLocale
}
// GetShopperLocaleOk returns a tuple with the ShopperLocale field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PaymentLinkResponse) GetShopperLocaleOk() (*string, bool) {
if o == nil || common.IsNil(o.ShopperLocale) {
return nil, false
}
return o.ShopperLocale, true
}
// HasShopperLocale returns a boolean if a field has been set.
func (o *PaymentLinkResponse) HasShopperLocale() bool {
if o != nil && !common.IsNil(o.ShopperLocale) {
return true
}
return false
}
// SetShopperLocale gets a reference to the given string and assigns it to the ShopperLocale field.
func (o *PaymentLinkResponse) SetShopperLocale(v string) {
o.ShopperLocale = &v
}
// GetShopperName returns the ShopperName field value if set, zero value otherwise.
func (o *PaymentLinkResponse) GetShopperName() Name {
if o == nil || common.IsNil(o.ShopperName) {