forked from GBSEcom/NPM
-
Notifications
You must be signed in to change notification settings - Fork 0
/
types.gen.go
5703 lines (4057 loc) · 220 KB
/
types.gen.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
// Package fiserv provides primitives to interact the openapi HTTP API.
//
// Code generated by github.com/deepmap/oapi-codegen DO NOT EDIT.
package fiserv
import (
openapi_types "github.com/deepmap/oapi-codegen/pkg/types"
)
// ACSResponse defines model for ACSResponse.
type ACSResponse struct {
// The ACS response to the CReq message. It can indicate the result of cardholder authentication or, in the case of an app-based model, also signal that further cardholder interaction is required to complete the authentication.
CRes *string `json:"cRes,omitempty"`
}
// AVSResponse defines model for AVSResponse.
type AVSResponse struct {
// The raw address verification response code returned by issuer. Please refer to response codes section in developer portal for more info.
AssociationAvsResponse *string `json:"associationAvsResponse,omitempty"`
// Response if postal code matches that on file.
PostalCodeMatch *string `json:"postalCodeMatch,omitempty"`
// Response if street matches that on file.
StreetMatch *string `json:"streetMatch,omitempty"`
}
// AccessTokenRequest defines model for AccessTokenRequest.
type AccessTokenRequest struct {
// Domain name.
Domain string `json:"domain"`
// Indicates whether public key is requested or not.
PublicKeyRequired bool `json:"publicKeyRequired"`
// The token value.
Token string `json:"token"`
}
// AccessTokenResponse defines model for AccessTokenResponse.
type AccessTokenResponse struct {
// Encyption algorithym. One way ECDH 256 bit key.
Algorithm *string `json:"algorithm,omitempty"`
// Echoes back the value from the request header for tracking.
ClientRequestId *string `json:"clientRequestId,omitempty"`
// Access token expiration time.
ExpiresInSeconds *string `json:"expiresInSeconds,omitempty"`
// Access token issued time in milliseconds.
IssuedOn *string `json:"issuedOn,omitempty"`
// Public key to encrypt data.
PublicKeyBase64 *string `json:"publicKeyBase64,omitempty"`
// The token status.
Status *string `json:"status,omitempty"`
// Access token for authentication.
TokenId *string `json:"tokenId,omitempty"`
}
// AccountInfoLookupRequest defines model for AccountInfoLookupRequest.
type AccountInfoLookupRequest struct {
// Object name of the account verification request.
RequestType string `json:"requestType"`
// An optional outlet ID for clients that support multiple stores in the same app.
StoreId *string `json:"storeId,omitempty"`
}
// AccountUpdaterResponse defines model for AccountUpdaterResponse.
type AccountUpdaterResponse struct {
// Code for the error encountered when updating account.
UpdatedAccountErrorCode *string `json:"updatedAccountErrorCode,omitempty"`
// Status of the updated account. An account may have closed (C), the expiry date may have changed (E), the account may have changed (A), or the cardholder should be contacted (Q).
UpdatedAccountStatus *string `json:"updatedAccountStatus,omitempty"`
// Account updater replacement PAN or TransArmor token.
UpdatedCard *string `json:"updatedCard,omitempty"`
// New account number expiration date in MMYY format.
UpdatedExpirationDate *string `json:"updatedExpirationDate,omitempty"`
// Updated value of token.
UpdatedToken *string `json:"updatedToken,omitempty"`
}
// AccountVerificationRequest defines model for AccountVerificationRequest.
type AccountVerificationRequest struct {
// Merchant supplied tracking numbers.
AdditionalDetails *AdditionalDetails `json:"additionalDetails,omitempty"`
// Model for address information.
BillingAddress *Address `json:"billingAddress,omitempty"`
// The unique merchant transaction ID from the request, if supplied.
MerchantTransactionId *string `json:"merchantTransactionId,omitempty"`
// Object name of the account verification request.
RequestType string `json:"requestType"`
// An optional outlet ID for clients that support multiple stores in the same app.
StoreId *string `json:"storeId,omitempty"`
}
// AchCreditTransaction defines model for AchCreditTransaction.
type AchCreditTransaction struct {
// Embedded struct due to allOf(#/components/schemas/PrimaryTransaction)
PrimaryTransaction
// Embedded fields due to inline allOf schema
// ACH means automated clearing house. Contains properties common across TeleCheck message types. Abstract class, do not use this class directly, use one of its children.
PaymentMethod TeleCheckAchPaymentMethod `json:"paymentMethod"`
}
// AchPostAuthTransaction defines model for AchPostAuthTransaction.
type AchPostAuthTransaction struct {
// Embedded struct due to allOf(#/components/schemas/SecondaryTransaction)
SecondaryTransaction
// Embedded fields due to inline allOf schema
// Amount of the transaction.
TransactionAmount Amount `json:"transactionAmount"`
}
// AchPreAuthTransaction defines model for AchPreAuthTransaction.
type AchPreAuthTransaction struct {
// Embedded struct due to allOf(#/components/schemas/PrimaryTransaction)
PrimaryTransaction
// Embedded fields due to inline allOf schema
// ACH means automated clearing house. Contains properties common across TeleCheck message types. Abstract class, do not use this class directly, use one of its children.
PaymentMethod TeleCheckAchPaymentMethod `json:"paymentMethod"`
}
// AchRecurringType defines model for AchRecurringType.
type AchRecurringType string
// List of AchRecurringType
const (
AchRecurringType_Recurring AchRecurringType = "Recurring"
AchRecurringType_Single AchRecurringType = "Single"
)
// AchResponse defines model for AchResponse.
type AchResponse struct {
// Code provided if check is approved.
ApprovalCode *string `json:"approvalCode,omitempty"`
// Preferred flag.
PreferredFlag *string `json:"preferredFlag,omitempty"`
// Reference number.
ReferenceNumber *string `json:"referenceNumber,omitempty"`
// Response code for TeleCheck authentication decision in the sale response message.
ResponseCode *string `json:"responseCode,omitempty"`
// Indicates the result of the requested authorization and is returned in the sale response.
TransactionStatus *string `json:"transactionStatus,omitempty"`
}
// AchReturnTransaction defines model for AchReturnTransaction.
type AchReturnTransaction struct {
// Embedded struct due to allOf(#/components/schemas/SecondaryTransaction)
SecondaryTransaction
// Embedded fields due to inline allOf schema
// Amount of the transaction.
TransactionAmount Amount `json:"transactionAmount"`
}
// AchSaleTransaction defines model for AchSaleTransaction.
type AchSaleTransaction struct {
// Embedded struct due to allOf(#/components/schemas/PrimaryTransaction)
PrimaryTransaction
// Embedded fields due to inline allOf schema
// ACH means automated clearing house. Contains properties common across TeleCheck message types. Abstract class, do not use this class directly, use one of its children.
PaymentMethod TeleCheckAchPaymentMethod `json:"paymentMethod"`
}
// AchVoidTransaction defines model for AchVoidTransaction.
type AchVoidTransaction struct {
// Embedded struct due to allOf(#/components/schemas/SecondaryTransaction)
SecondaryTransaction
// Embedded fields due to inline allOf schema
// Amount of the transaction.
TransactionAmount Amount `json:"transactionAmount"`
}
// AdditionalAmountRate defines model for AdditionalAmountRate.
type AdditionalAmountRate struct {
// Amount in 3 decimal 12 bytes total digit.
Amount float32 `json:"amount"`
// Rate in 3 decimal 12 bytes total digit.
Rate float32 `json:"rate"`
}
// AdditionalDetails defines model for AdditionalDetails.
type AdditionalDetails struct {
// Comments for the payment.
Comments *string `json:"comments,omitempty"`
// this is highRiskPurchaseIndicator.
HighRiskPurchaseIndicator *bool `json:"highRiskPurchaseIndicator,omitempty"`
// Invoice number.
InvoiceNumber *string `json:"invoiceNumber,omitempty"`
// Indicates if the particular transaction is a deferred authorization.
IpgDeferredAuth *bool `json:"ipgDeferredAuth,omitempty"`
// The operator ID.
OperatorId *string `json:"operatorId,omitempty"`
// Purchase order number.
PurchaseOrderNumber *string `json:"purchaseOrderNumber,omitempty"`
// Provides request information that is necessary to generate receipts.
Receipts *[]ReceiptRequestInfo `json:"receipts,omitempty"`
// The sales system ID.
SalesSystemId *string `json:"salesSystemId,omitempty"`
// Strong customer authentication exemption type indicator.
ScaExemptionType *string `json:"scaExemptionType,omitempty"`
// Eight-character Visa merchant identifier (VMID) assigned by Visa, required for trusted merchant and delegated authentication.
ScaVisaMerchantID *string `json:"scaVisaMerchantID,omitempty"`
}
// AdditionalTransactionDetails defines model for AdditionalTransactionDetails.
type AdditionalTransactionDetails struct {
// Comment for the payment.
Comments *string `json:"comments,omitempty"`
// The type of debit disbursement transaction.
DisbursementTransType *string `json:"disbursementTransType,omitempty"`
// Invoice number.
InvoiceNumber *string `json:"invoiceNumber,omitempty"`
// Purchase order number.
PurchaseOrderNumber *string `json:"purchaseOrderNumber,omitempty"`
// Provides receipt response data, if it has been requested.
Receipts *[]Receipt `json:"receipts,omitempty"`
// The wallet provider type.
WalletProvider *string `json:"walletProvider,omitempty"`
}
// Address defines model for Address.
type Address struct {
// First line of the street address.
Address1 *string `json:"address1,omitempty"`
// Second line of the street address.
Address2 *string `json:"address2,omitempty"`
// City or locality.
City *string `json:"city,omitempty"`
// Company name associated with the address.
Company *string `json:"company,omitempty"`
// ISO-3166-1 ALPHA-2, ALPHA-3, numeric or full country name. In the case of PaySecure endpoints, pass the country code in an ISO format.
Country *string `json:"country,omitempty"`
// ZIP code or postal code.
PostalCode *string `json:"postalCode,omitempty"`
// State or province.
Region *string `json:"region,omitempty"`
}
// Airline defines model for Airline.
type Airline struct {
// The invoice number used by the airline.
AirlineInvoiceNumber *string `json:"airlineInvoiceNumber,omitempty"`
// The airline plan number associated with the transaction.
AirlinePlanNumber *string `json:"airlinePlanNumber,omitempty"`
// Identify the purchase of ancillary goods or services with a false value. If this element is not provided, the transaction is assumed to be a purchase of an airline ticket.
AncillaryServiceCategory *[]struct {
// Identifies the service purchased in the transaction if not a base ticket
ServiceCategory string `json:"serviceCategory"`
} `json:"ancillaryServiceCategory,omitempty"`
// The carrier associated with the transaction.
CarrierName *string `json:"carrierName,omitempty"`
// The carrier that issued the ticket.
IssuingCarrier *string `json:"issuingCarrier,omitempty"`
// The passenger name associated with the transaction.
PassengerName *string `json:"passengerName,omitempty"`
// The number of any other tickets associated with the transaction ticket.
RelatedTicketNumber *string `json:"relatedTicketNumber,omitempty"`
// The reservation system used to create the ticket.
ReservationSystem *string `json:"reservationSystem,omitempty"`
// If the transaction is associated with a restricted class fare.
Restricted *bool `json:"restricted,omitempty"`
// The airline ticket number associated with the transaction.
TicketNumber *string `json:"ticketNumber,omitempty"`
// Identifies if the transaction is a ticket purchase.
TicketPurchase *bool `json:"ticketPurchase,omitempty"`
// The IATA code associated with the travel agency.
TravelAgencyIataCode *string `json:"travelAgencyIataCode,omitempty"`
// The business name of the travel agency.
TravelAgencyName *string `json:"travelAgencyName,omitempty"`
// Array containing up to 4 items that describe the route associated with the transaction.
TravelRoute *[]struct {
// The IATA code for the carrier.
CarrierCode *string `json:"carrierCode,omitempty"`
// Date of departure.
DepartureDate *openapi_types.Date `json:"departureDate,omitempty"`
// Fee charged by a country when a person leaves the country.
DepartureTax *float32 `json:"departureTax,omitempty"`
// The IATA code for the destination. airport.
Destination *string `json:"destination,omitempty"`
// The airline fare basis code.
FareBasisCode *string `json:"fareBasisCode,omitempty"`
// The airline flight number associated with the ticket.
FlightNumber *string `json:"flightNumber,omitempty"`
// The IATA code for the departure airport.
Origin *string `json:"origin,omitempty"`
// The airline code for the service class of the ticket.
ServiceClass *string `json:"serviceClass,omitempty"`
// Indicates whether the route is direct.
StopoverType *string `json:"stopoverType,omitempty"`
} `json:"travelRoute,omitempty"`
}
// AliPay defines model for AliPay.
type AliPay struct {
// Use this to send order details that show up in the statement.
OrderDetails string `json:"orderDetails"`
// Use this to send an order title that shows up in the statement.
OrderTitle string `json:"orderTitle"`
// Use this to send payment-related information, such as customer identity ID.
PaymentData string `json:"paymentData"`
// Use this to indicate the type of machine-readable payment data for scanning.
PaymentDataType string `json:"paymentDataType"`
}
// AliPayPaymentMethod defines model for AliPayPaymentMethod.
type AliPayPaymentMethod struct {
// Embedded struct due to allOf(#/components/schemas/PaymentMethod)
PaymentMethod
// Embedded fields due to inline allOf schema
// The payment object for AliPay transactions. Use this to populate AliPay payment method details.
AliPay AliPay `json:"aliPay"`
}
// AliPaySaleTransaction defines model for AliPaySaleTransaction.
type AliPaySaleTransaction struct {
// Embedded struct due to allOf(#/components/schemas/PrimaryTransaction)
PrimaryTransaction
// Embedded fields due to inline allOf schema
// Payment method containing AliPay information.
PaymentMethod AliPayPaymentMethod `json:"paymentMethod"`
}
// Amount defines model for Amount.
type Amount struct {
// Transaction amounts with multiple components.
Components *AmountComponents `json:"components,omitempty"`
// ISO 4217 currency code.
Currency string `json:"currency"`
// Sub component values must add up to total amount.
Total float32 `json:"total"`
}
// AmountComponents defines model for AmountComponents.
type AmountComponents struct {
// Cashback amount.
Cashback *float32 `json:"cashback,omitempty"`
// Local tax amount.
LocalTax *float32 `json:"localTax,omitempty"`
// Shipping amount.
Shipping *float32 `json:"shipping,omitempty"`
// Subtotal amount.
Subtotal *float32 `json:"subtotal,omitempty"`
// Tip amount.
Tip *float32 `json:"tip,omitempty"`
// Value-added tax amount.
VatAmount *float32 `json:"vatAmount,omitempty"`
}
// AuthenticationRequest defines model for AuthenticationRequest.
type AuthenticationRequest struct {
// Indicates what kind of authentication scheme the merchant wants to use on the card.
AuthenticationType string `json:"authenticationType"`
}
// AuthenticationResult defines model for AuthenticationResult.
type AuthenticationResult struct {
// Specifies the version of 3DS to be used where authentication was managed outside of the gateway.
AuthenticationType string `json:"authenticationType"`
}
// AuthenticationUpdateRequest defines model for AuthenticationUpdateRequest.
type AuthenticationUpdateRequest struct {
// Object name of the authentication update request.
AuthenticationType string `json:"authenticationType"`
// Model for address information.
BillingAddress *Address `json:"billingAddress,omitempty"`
// An optional Outlet ID for clients that support multiple stores in the same developer app.
StoreId *string `json:"storeId,omitempty"`
}
// Background defines model for Background.
type Background struct {
Body *Body `json:"body,omitempty"`
Borders *Borders `json:"borders,omitempty"`
Content *Content `json:"content,omitempty"`
TopBar *TopBar `json:"topBar,omitempty"`
}
// BackgroundColor defines model for BackgroundColor.
type BackgroundColor struct {
Content *Content `json:"content,omitempty"`
Footer *Footer `json:"footer,omitempty"`
Header *Header `json:"header,omitempty"`
}
// BancontactQR defines model for BancontactQR.
type BancontactQR struct {
// Issuer Customer Reference.
IssuerCustomerReference *string `json:"issuerCustomerReference,omitempty"`
// Transaction Routing Means.
TransactionRoutingMeans string `json:"transactionRoutingMeans"`
}
// BasicResponse defines model for BasicResponse.
type BasicResponse struct {
// Request identifier in API, can be used to request logs from the support team.
ApiTraceId *string `json:"apiTraceId,omitempty"`
// Echoes back the value in the request header for tracking.
ClientRequestId *string `json:"clientRequestId,omitempty"`
// The type of the response.
ResponseType *ResponseType `json:"responseType,omitempty"`
}
// Billing defines model for Billing.
type Billing struct {
// Model for address information.
Address *Address `json:"address,omitempty"`
// Customer birth date.
BirthDate *openapi_types.Date `json:"birthDate,omitempty"`
// Customer contact information.
Contact *Contact `json:"contact,omitempty"`
// Customer ID for billing purpose.
CustomerId *string `json:"customerId,omitempty"`
// Billing name.
Name *string `json:"name,omitempty"`
}
// BillingAddress defines model for BillingAddress.
type BillingAddress struct {
// City.
City *string `json:"city,omitempty"`
// Country.
Country *string `json:"country,omitempty"`
// First name.
FirstName *string `json:"firstName,omitempty"`
// Last name.
LastName *string `json:"lastName,omitempty"`
// Middle name.
MiddleName *string `json:"middleName,omitempty"`
// Phone number.
Phone *Phone `json:"phone,omitempty"`
// State or province.
StateProvince *string `json:"stateProvince,omitempty"`
// First line of street address.
Street string `json:"street"`
// Second line of street address.
Street2 *string `json:"street2,omitempty"`
// Postal code.
ZipPostalCode *string `json:"zipPostalCode,omitempty"`
}
// BlockCard defines model for BlockCard.
type BlockCard struct {
// Use this field to send clear PAN or tokens other than TransArmor Token.
CardNumber *string `json:"cardNumber,omitempty"`
// The unique merchant transaction ID.
MerchantTransactionId *string `json:"merchantTransactionId,omitempty"`
// Client order ID.
OrderId *string `json:"orderId,omitempty"`
}
// BlockDomain defines model for BlockDomain.
type BlockDomain struct {
// Use this field to send domain name to be blocked.
Domain *string `json:"domain,omitempty"`
}
// BlockIPAddress defines model for BlockIPAddress.
type BlockIPAddress struct {
// Use this field to send IP address to be blocked.
IpAddress *string `json:"ipAddress,omitempty"`
// Client order ID.
OrderId *string `json:"orderId,omitempty"`
}
// BlockName defines model for BlockName.
type BlockName struct {
// Use this field to send name to be blocked.
Name *string `json:"name,omitempty"`
// Client order ID.
OrderId *string `json:"orderId,omitempty"`
}
// BlockedCardNumber defines model for BlockedCardNumber.
type BlockedCardNumber struct {
// Use this field to send clear PAN or tokens other than TransArmor Token.
CardNumber *string `json:"cardNumber,omitempty"`
// Token identifier.
TokenIdentifier *string `json:"tokenIdentifier,omitempty"`
}
// BlockedItems defines model for BlockedItems.
type BlockedItems struct {
// Object that holds information about card that should be blocked.
BlockCard *BlockCard `json:"blockCard,omitempty"`
// Object that holds information about domain that should be blocked.
BlockDomain *BlockDomain `json:"blockDomain,omitempty"`
// Object that holds information about IP address that should be blocked.
BlockIPAddress *BlockIPAddress `json:"blockIPAddress,omitempty"`
// Object that holds information about name that should be blocked.
BlockName *BlockName `json:"blockName,omitempty"`
}
// Body defines model for Body.
type Body struct {
// Hexadecimal color value.
Color *Color `json:"color,omitempty"`
}
// Borders defines model for Borders.
type Borders struct {
// Hexadecimal color value.
Color *Color `json:"color,omitempty"`
}
// BrandingStyleConfigurationRequest defines model for BrandingStyleConfigurationRequest.
type BrandingStyleConfigurationRequest struct {
Stores *[]StoreBrandingStyleConfiguration `json:"stores,omitempty"`
}
// BrandingStyleConfigurationResponse defines model for BrandingStyleConfigurationResponse.
type BrandingStyleConfigurationResponse struct {
// Embedded struct due to allOf(#/components/schemas/BasicResponse)
BasicResponse
// Embedded fields due to inline allOf schema
Stores *[]BrandingStyleConfigurationResult `json:"stores,omitempty"`
}
// BrandingStyleConfigurationResult defines model for BrandingStyleConfigurationResult.
type BrandingStyleConfigurationResult struct {
// An optional outlet id for clients that support multiple stores in the same developer app.
Id *string `json:"id,omitempty"`
// Status from branding style configuration process.
Status *string `json:"status,omitempty"`
}
// Button defines model for Button.
type Button struct {
Hover *Hover `json:"hover,omitempty"`
Primary *Primary `json:"primary,omitempty"`
}
// CarRental defines model for CarRental.
type CarRental struct {
// The car rental agreement number.
AgreementNumber *string `json:"agreementNumber,omitempty"`
// Array containing information about charges other than the rental rate.
ExtraCharges *[]struct {
// Additional charge item.
ChargeItem *string `json:"chargeItem,omitempty"`
} `json:"extraCharges,omitempty"`
// Indicates if the transaction is related to a no-show charge.
NoShowIndicator *bool `json:"noShowIndicator,omitempty"`
// The date the car rental begins.
PickupDate *openapi_types.Date `json:"pickupDate,omitempty"`
// The classification of the rental car.
RentalClassId *string `json:"rentalClassId,omitempty"`
// The name of the person renting the car.
RenterName *string `json:"renterName,omitempty"`
// The city where the rental ends and the car is returned.
ReturnCity *string `json:"returnCity,omitempty"`
// The date the car rental ends and the car is returned.
ReturnDate *openapi_types.Date `json:"returnDate,omitempty"`
}
// Card defines model for Card.
type Card struct {
// Use this field to send clear PAN or tokens other than TransArmor Token.
CardNumber *string `json:"cardNumber,omitempty"`
// A number that distinguishes between two plastic cards with the same card number in the event of the card being re-issued.
CardReissuedNumber *string `json:"cardReissuedNumber,omitempty"`
// The cardholder name as it appears on the card.
CardholderName *string `json:"cardholderName,omitempty"`
// CVV present indicator.
Cvv *string `json:"cvv,omitempty"`
// Payment method expiration date. Format is MMYYYY.
ExpDate *string `json:"expDate,omitempty"`
// The company (usually a bank) that issued the card.
Issuer *string `json:"issuer,omitempty"`
// TransArmor token value. Either the token fields or card number field must contain a value.
TaToken *string `json:"taToken,omitempty"`
// TransArmor token key to identify the merchant.
TaTokenKey *string `json:"taTokenKey,omitempty"`
}
// CardFunction defines model for CardFunction.
type CardFunction string
// List of CardFunction
const (
CardFunction_CREDIT CardFunction = "CREDIT"
CardFunction_DEBIT CardFunction = "DEBIT"
CardFunction_PREPAID CardFunction = "PREPAID"
CardFunction_UNDEFINED CardFunction = "UNDEFINED"
CardFunction_VOUCHER CardFunction = "VOUCHER"
)
// CardInfo defines model for CardInfo.
type CardInfo struct {
// The card brand.
Brand *string `json:"brand,omitempty"`
// The product ID of the brand.
BrandProductId *string `json:"brandProductId,omitempty"`
// Card function. This field is required when performing transactions for Brazil merchants.
CardFunction *CardFunction `json:"cardFunction,omitempty"`
// Indicates whether it is a corporate or non-corporate card.
CommercialCard *string `json:"commercialCard,omitempty"`
// The country of the issuer.
IssuerCountry *string `json:"issuerCountry,omitempty"`
// The name of the issuer.
IssuerName *string `json:"issuerName,omitempty"`
}
// CardInfoLookupRequest defines model for CardInfoLookupRequest.
type CardInfoLookupRequest struct {
// Payment card model.
PaymentCard PaymentCard `json:"paymentCard"`
// An optional outlet id for clients that support multiple stores in the same developer app.
StoreId *string `json:"storeId,omitempty"`
}
// CardInfoLookupResponse defines model for CardInfoLookupResponse.
type CardInfoLookupResponse struct {
// Embedded struct due to allOf(#/components/schemas/BasicResponse)
BasicResponse
// Embedded fields due to inline allOf schema
// One or more card information retrieved based on BIN.
CardDetails *[]CardInfo `json:"cardDetails,omitempty"`
// Request status.
RequestStatus *string `json:"requestStatus,omitempty"`
}
// CardVerificationRequest defines model for CardVerificationRequest.
type CardVerificationRequest struct {
// Model for address information.
BillingAddress *Address `json:"billingAddress,omitempty"`
// Payment card model.
PaymentCard PaymentCard `json:"paymentCard"`
// An optional outlet ID for clients that support multiple stores in the same app.
StoreId *string `json:"storeId,omitempty"`
}
// ChinaDomestic defines model for ChinaDomestic.
type ChinaDomestic struct {
// Use this to indicate the CUP bank ID if known.
BankId *string `json:"bankId,omitempty"`
// Use this to indicate the CUP customer ID if known.
CustomerId *string `json:"customerId,omitempty"`
// Use this to limit card functions to debit cards.
LimitCardFunctionToDebit *bool `json:"limitCardFunctionToDebit,omitempty"`
// Use this as unique identifier of WeChat user which is corresponded to the appid of merchant. The field is only applicable for ChinaDomesticPaymentMethod - brand = WECHAT_DOMESTIC
OpenId *string `json:"openId,omitempty"`
// Use this to indicate the product code according to the product category list.
ProductCode string `json:"productCode"`
// The product description.
ProductDescription string `json:"productDescription"`
// Rate amount in 3 decimal 12 bytes total digit.
ProductPrice float32 `json:"productPrice"`
// The quantity.
ProductQuantity int `json:"productQuantity"`
// Use this to indicate the product code according to the product category list.
RedirectURL string `json:"redirectURL"`
}
// ChinaDomesticPaymentMethod defines model for ChinaDomesticPaymentMethod.
type ChinaDomesticPaymentMethod struct {
// Embedded struct due to allOf(#/components/schemas/PaymentMethod)
PaymentMethod
// Embedded fields due to inline allOf schema
Brand string `json:"brand"`
// The payment object for China-domestic transactions. Use this to populate all china domestic payment method details.
ChinaDomestic ChinaDomestic `json:"chinaDomestic"`
}
// ChinaPnRSaleTransaction defines model for ChinaPnRSaleTransaction.
type ChinaPnRSaleTransaction struct {
// Embedded struct due to allOf(#/components/schemas/PrimaryTransaction)
PrimaryTransaction
// Embedded fields due to inline allOf schema
// Payment method containing China Domestic information.
PaymentMethod ChinaDomesticPaymentMethod `json:"paymentMethod"`
}
// ClassicMode defines model for ClassicMode.
type ClassicMode struct {
// Object contains font properties.
AmountTitle *FontProperties `json:"amountTitle,omitempty"`
// Object contains font and color properties.
Anchor *Properties `json:"anchor,omitempty"`
// Object contains background color properties.
BackgroundColor *BackgroundColor `json:"backgroundColor,omitempty"`
// Object contains font and color properties.
Buttons *Properties `json:"buttons,omitempty"`
// Object contains font properties.
IndividualText *FontProperties `json:"individualText,omitempty"`
// Object contains font properties.
Label *FontProperties `json:"label,omitempty"`
// Object contains configurable style properties for mobile.
Mobile *Mobile `json:"mobile,omitempty"`
// Object contains font properties.
NormalText *FontProperties `json:"normalText,omitempty"`
// Object contains font properties.
Superscription *FontProperties `json:"superscription,omitempty"`
// Object contains font and color properties.
SystemMessages *Properties `json:"systemMessages,omitempty"`
}
// ClearingDetails defines model for ClearingDetails.
type ClearingDetails struct {
// Timestamp when the clearing has been processed. The used format is "YYYYMMDDhhmmss".
BatchTimeStamp *string `json:"batchTimeStamp,omitempty"`
// The array contains information about the clearing elements.
ClearingElements *[]ClearingElement `json:"clearingElements,omitempty"`
// Start receipt number for the clearing process.
ReceiptNumberFrom *int32 `json:"receiptNumberFrom,omitempty"`
// End receipt number for the clearing process.
ReceiptNumberTo *int32 `json:"receiptNumberTo,omitempty"`
// Trace number for the clearing process.
TraceNumber *int32 `json:"traceNumber,omitempty"`
}
// ClearingElement defines model for ClearingElement.
type ClearingElement struct {
// Contains the brand of the card.
Brand *string `json:"brand,omitempty"`
// Specifies the amount of clearing elements for a given brand.
Count *int32 `json:"count,omitempty"`
// Holds the total clearing value computed for a specific brand.
Value *int64 `json:"value,omitempty"`
}
// ClientLocale defines model for ClientLocale.
type ClientLocale struct {
// Country of the client.
Country string `json:"country"`
// Language used by client.
Language string `json:"language"`
}
// ClientRegistration defines model for ClientRegistration.
type ClientRegistration struct {
// Embedded struct due to allOf(#/components/schemas/FraudRegistration)
FraudRegistration
// Embedded fields due to inline allOf schema
// Defines the type of the original transaction that is being evaluated for the Fraud Score.
OriginalTransactionType *string `json:"originalTransactionType,omitempty"`
}
// Color defines model for Color.
type Color string
// CombinedMode defines model for CombinedMode.
type CombinedMode struct {
// Object contains background style properties.
Background *Background `json:"background,omitempty"`
// Object contains button style properties.
Button *Button `json:"button,omitempty"`
// Object contains logo data.
Logo *Logo `json:"logo,omitempty"`
// Object contains text style properties.
Text *Text `json:"text,omitempty"`
}
// ConnectMode defines model for ConnectMode.
type ConnectMode string
// List of ConnectMode
const (
ConnectMode_Classic ConnectMode = "Classic"
ConnectMode_Combined ConnectMode = "Combined"
)
// Contact defines model for Contact.
type Contact struct {
// Email address.
Email *string `json:"email,omitempty"`
// Fax number.
Fax *string `json:"fax,omitempty"`
// Mobile phone number.
MobilePhone *string `json:"mobilePhone,omitempty"`
// Primary phone number.
Phone *string `json:"phone,omitempty"`
}
// Content defines model for Content.
type Content struct {
// Hexadecimal color value.
Color *Color `json:"color,omitempty"`
}
// CountryProfile defines model for CountryProfile.
type CountryProfile struct {
// Country profile.
Profile *int `json:"profile,omitempty"`
}
// CreatePaymentToken defines model for CreatePaymentToken.
type CreatePaymentToken struct {
// Decline duplicate payment info if client token is supplied.