@commercelayer/sdk 6.51.0 → 6.52.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.d.mts CHANGED
@@ -971,7 +971,7 @@ type PaymentGatewayType = 'payment_gateways';
971
971
  type PaymentGatewayRel$1 = ResourceRel & {
972
972
  type: PaymentGatewayType;
973
973
  };
974
- type PaymentGatewaySort = Pick<PaymentGateway, 'id' | 'name'> & ResourceSort;
974
+ type PaymentGatewaySort = Pick<PaymentGateway, 'id' | 'name' | 'disabled_at'> & ResourceSort;
975
975
  interface PaymentGateway extends Resource {
976
976
  readonly type: PaymentGatewayType;
977
977
  /**
@@ -979,6 +979,16 @@ interface PaymentGateway extends Resource {
979
979
  * @example ```"US payment gateway"```
980
980
  */
981
981
  name: string;
982
+ /**
983
+ * Indicates if the payment source is forced on the editable order upon receiving a successful event from the gateway.
984
+ * @example ```true```
985
+ */
986
+ force_payments?: boolean | null;
987
+ /**
988
+ * Time at which this resource was disabled.
989
+ * @example ```"2018-01-01T12:00:00.000Z"```
990
+ */
991
+ disabled_at?: string | null;
982
992
  payment_methods?: PaymentMethod[] | null;
983
993
  versions?: Version[] | null;
984
994
  event_stores?: EventStore[] | null;
@@ -15216,7 +15226,7 @@ type AdyenGatewayRel = ResourceRel & {
15216
15226
  type AdyenPaymentRel = ResourceRel & {
15217
15227
  type: AdyenPaymentType;
15218
15228
  };
15219
- type AdyenGatewaySort = Pick<AdyenGateway, 'id' | 'name'> & ResourceSort;
15229
+ type AdyenGatewaySort = Pick<AdyenGateway, 'id' | 'name' | 'disabled_at'> & ResourceSort;
15220
15230
  interface AdyenGateway extends Resource {
15221
15231
  readonly type: AdyenGatewayType;
15222
15232
  /**
@@ -15224,6 +15234,16 @@ interface AdyenGateway extends Resource {
15224
15234
  * @example ```"US payment gateway"```
15225
15235
  */
15226
15236
  name: string;
15237
+ /**
15238
+ * Indicates if the payment source is forced on the editable order upon receiving a successful event from the gateway.
15239
+ * @example ```true```
15240
+ */
15241
+ force_payments?: boolean | null;
15242
+ /**
15243
+ * Time at which this resource was disabled.
15244
+ * @example ```"2018-01-01T12:00:00.000Z"```
15245
+ */
15246
+ disabled_at?: string | null;
15227
15247
  /**
15228
15248
  * The prefix of the endpoint used for live transactions.
15229
15249
  * @example ```"1797a841fbb37ca7-AdyenDemo"```
@@ -15269,6 +15289,21 @@ interface AdyenGatewayCreate extends ResourceCreate {
15269
15289
  * @example ```"US payment gateway"```
15270
15290
  */
15271
15291
  name: string;
15292
+ /**
15293
+ * Indicates if the payment source is forced on the editable order upon receiving a successful event from the gateway.
15294
+ * @example ```true```
15295
+ */
15296
+ force_payments?: boolean | null;
15297
+ /**
15298
+ * Send this attribute if you want to mark this resource as disabled.
15299
+ * @example ```true```
15300
+ */
15301
+ _disable?: boolean | null;
15302
+ /**
15303
+ * Send this attribute if you want to mark this resource as enabled.
15304
+ * @example ```true```
15305
+ */
15306
+ _enable?: boolean | null;
15272
15307
  /**
15273
15308
  * The gateway merchant account.
15274
15309
  * @example ```"xxxx-yyyy-zzzz"```
@@ -15321,6 +15356,21 @@ interface AdyenGatewayUpdate extends ResourceUpdate {
15321
15356
  * @example ```"US payment gateway"```
15322
15357
  */
15323
15358
  name?: string | null;
15359
+ /**
15360
+ * Indicates if the payment source is forced on the editable order upon receiving a successful event from the gateway.
15361
+ * @example ```true```
15362
+ */
15363
+ force_payments?: boolean | null;
15364
+ /**
15365
+ * Send this attribute if you want to mark this resource as disabled.
15366
+ * @example ```true```
15367
+ */
15368
+ _disable?: boolean | null;
15369
+ /**
15370
+ * Send this attribute if you want to mark this resource as enabled.
15371
+ * @example ```true```
15372
+ */
15373
+ _enable?: boolean | null;
15324
15374
  /**
15325
15375
  * The gateway merchant account.
15326
15376
  * @example ```"xxxx-yyyy-zzzz"```
@@ -15376,6 +15426,8 @@ declare class AdyenGateways extends ApiResource<AdyenGateway> {
15376
15426
  versions(adyenGatewayId: string | AdyenGateway, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>>;
15377
15427
  event_stores(adyenGatewayId: string | AdyenGateway, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>>;
15378
15428
  adyen_payments(adyenGatewayId: string | AdyenGateway, params?: QueryParamsList<AdyenPayment>, options?: ResourcesConfig): Promise<ListResponse<AdyenPayment>>;
15429
+ _disable(id: string | AdyenGateway, params?: QueryParamsRetrieve<AdyenGateway>, options?: ResourcesConfig): Promise<AdyenGateway>;
15430
+ _enable(id: string | AdyenGateway, params?: QueryParamsRetrieve<AdyenGateway>, options?: ResourcesConfig): Promise<AdyenGateway>;
15379
15431
  isAdyenGateway(resource: any): resource is AdyenGateway;
15380
15432
  relationship(id: string | ResourceId | null): AdyenGatewayRel;
15381
15433
  relationshipToMany(...ids: string[]): AdyenGatewayRel[];
@@ -15431,7 +15483,7 @@ type AxerveGatewayRel = ResourceRel & {
15431
15483
  type AxervePaymentRel = ResourceRel & {
15432
15484
  type: AxervePaymentType;
15433
15485
  };
15434
- type AxerveGatewaySort = Pick<AxerveGateway, 'id' | 'name'> & ResourceSort;
15486
+ type AxerveGatewaySort = Pick<AxerveGateway, 'id' | 'name' | 'disabled_at'> & ResourceSort;
15435
15487
  interface AxerveGateway extends Resource {
15436
15488
  readonly type: AxerveGatewayType;
15437
15489
  /**
@@ -15439,6 +15491,16 @@ interface AxerveGateway extends Resource {
15439
15491
  * @example ```"US payment gateway"```
15440
15492
  */
15441
15493
  name: string;
15494
+ /**
15495
+ * Indicates if the payment source is forced on the editable order upon receiving a successful event from the gateway.
15496
+ * @example ```true```
15497
+ */
15498
+ force_payments?: boolean | null;
15499
+ /**
15500
+ * Time at which this resource was disabled.
15501
+ * @example ```"2018-01-01T12:00:00.000Z"```
15502
+ */
15503
+ disabled_at?: string | null;
15442
15504
  /**
15443
15505
  * The merchant login code.
15444
15506
  * @example ```"xxxx-yyyy-zzzz"```
@@ -15460,6 +15522,21 @@ interface AxerveGatewayCreate extends ResourceCreate {
15460
15522
  * @example ```"US payment gateway"```
15461
15523
  */
15462
15524
  name: string;
15525
+ /**
15526
+ * Indicates if the payment source is forced on the editable order upon receiving a successful event from the gateway.
15527
+ * @example ```true```
15528
+ */
15529
+ force_payments?: boolean | null;
15530
+ /**
15531
+ * Send this attribute if you want to mark this resource as disabled.
15532
+ * @example ```true```
15533
+ */
15534
+ _disable?: boolean | null;
15535
+ /**
15536
+ * Send this attribute if you want to mark this resource as enabled.
15537
+ * @example ```true```
15538
+ */
15539
+ _enable?: boolean | null;
15463
15540
  /**
15464
15541
  * The merchant login code.
15465
15542
  * @example ```"xxxx-yyyy-zzzz"```
@@ -15478,6 +15555,21 @@ interface AxerveGatewayUpdate extends ResourceUpdate {
15478
15555
  * @example ```"US payment gateway"```
15479
15556
  */
15480
15557
  name?: string | null;
15558
+ /**
15559
+ * Indicates if the payment source is forced on the editable order upon receiving a successful event from the gateway.
15560
+ * @example ```true```
15561
+ */
15562
+ force_payments?: boolean | null;
15563
+ /**
15564
+ * Send this attribute if you want to mark this resource as disabled.
15565
+ * @example ```true```
15566
+ */
15567
+ _disable?: boolean | null;
15568
+ /**
15569
+ * Send this attribute if you want to mark this resource as enabled.
15570
+ * @example ```true```
15571
+ */
15572
+ _enable?: boolean | null;
15481
15573
  /**
15482
15574
  * The merchant login code.
15483
15575
  * @example ```"xxxx-yyyy-zzzz"```
@@ -15499,6 +15591,8 @@ declare class AxerveGateways extends ApiResource<AxerveGateway> {
15499
15591
  versions(axerveGatewayId: string | AxerveGateway, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>>;
15500
15592
  event_stores(axerveGatewayId: string | AxerveGateway, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>>;
15501
15593
  axerve_payments(axerveGatewayId: string | AxerveGateway, params?: QueryParamsList<AxervePayment>, options?: ResourcesConfig): Promise<ListResponse<AxervePayment>>;
15594
+ _disable(id: string | AxerveGateway, params?: QueryParamsRetrieve<AxerveGateway>, options?: ResourcesConfig): Promise<AxerveGateway>;
15595
+ _enable(id: string | AxerveGateway, params?: QueryParamsRetrieve<AxerveGateway>, options?: ResourcesConfig): Promise<AxerveGateway>;
15502
15596
  isAxerveGateway(resource: any): resource is AxerveGateway;
15503
15597
  relationship(id: string | ResourceId | null): AxerveGatewayRel;
15504
15598
  relationshipToMany(...ids: string[]): AxerveGatewayRel[];
@@ -15568,7 +15662,7 @@ type BraintreeGatewayRel = ResourceRel & {
15568
15662
  type BraintreePaymentRel = ResourceRel & {
15569
15663
  type: BraintreePaymentType;
15570
15664
  };
15571
- type BraintreeGatewaySort = Pick<BraintreeGateway, 'id' | 'name'> & ResourceSort;
15665
+ type BraintreeGatewaySort = Pick<BraintreeGateway, 'id' | 'name' | 'disabled_at'> & ResourceSort;
15572
15666
  interface BraintreeGateway extends Resource {
15573
15667
  readonly type: BraintreeGatewayType;
15574
15668
  /**
@@ -15576,6 +15670,16 @@ interface BraintreeGateway extends Resource {
15576
15670
  * @example ```"US payment gateway"```
15577
15671
  */
15578
15672
  name: string;
15673
+ /**
15674
+ * Indicates if the payment source is forced on the editable order upon receiving a successful event from the gateway.
15675
+ * @example ```true```
15676
+ */
15677
+ force_payments?: boolean | null;
15678
+ /**
15679
+ * Time at which this resource was disabled.
15680
+ * @example ```"2018-01-01T12:00:00.000Z"```
15681
+ */
15682
+ disabled_at?: string | null;
15579
15683
  /**
15580
15684
  * The dynamic descriptor name. Must be composed by business name (3, 7 or 12 chars), an asterisk (*) and the product name (18, 14 or 9 chars), for a total length of 22 chars.
15581
15685
  * @example ```"company*productabc1234"```
@@ -15607,6 +15711,21 @@ interface BraintreeGatewayCreate extends ResourceCreate {
15607
15711
  * @example ```"US payment gateway"```
15608
15712
  */
15609
15713
  name: string;
15714
+ /**
15715
+ * Indicates if the payment source is forced on the editable order upon receiving a successful event from the gateway.
15716
+ * @example ```true```
15717
+ */
15718
+ force_payments?: boolean | null;
15719
+ /**
15720
+ * Send this attribute if you want to mark this resource as disabled.
15721
+ * @example ```true```
15722
+ */
15723
+ _disable?: boolean | null;
15724
+ /**
15725
+ * Send this attribute if you want to mark this resource as enabled.
15726
+ * @example ```true```
15727
+ */
15728
+ _enable?: boolean | null;
15610
15729
  /**
15611
15730
  * The gateway merchant account ID.
15612
15731
  * @example ```"xxxx-yyyy-zzzz"```
@@ -15650,6 +15769,21 @@ interface BraintreeGatewayUpdate extends ResourceUpdate {
15650
15769
  * @example ```"US payment gateway"```
15651
15770
  */
15652
15771
  name?: string | null;
15772
+ /**
15773
+ * Indicates if the payment source is forced on the editable order upon receiving a successful event from the gateway.
15774
+ * @example ```true```
15775
+ */
15776
+ force_payments?: boolean | null;
15777
+ /**
15778
+ * Send this attribute if you want to mark this resource as disabled.
15779
+ * @example ```true```
15780
+ */
15781
+ _disable?: boolean | null;
15782
+ /**
15783
+ * Send this attribute if you want to mark this resource as enabled.
15784
+ * @example ```true```
15785
+ */
15786
+ _enable?: boolean | null;
15653
15787
  /**
15654
15788
  * The gateway merchant account ID.
15655
15789
  * @example ```"xxxx-yyyy-zzzz"```
@@ -15696,6 +15830,8 @@ declare class BraintreeGateways extends ApiResource<BraintreeGateway> {
15696
15830
  versions(braintreeGatewayId: string | BraintreeGateway, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>>;
15697
15831
  event_stores(braintreeGatewayId: string | BraintreeGateway, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>>;
15698
15832
  braintree_payments(braintreeGatewayId: string | BraintreeGateway, params?: QueryParamsList<BraintreePayment>, options?: ResourcesConfig): Promise<ListResponse<BraintreePayment>>;
15833
+ _disable(id: string | BraintreeGateway, params?: QueryParamsRetrieve<BraintreeGateway>, options?: ResourcesConfig): Promise<BraintreeGateway>;
15834
+ _enable(id: string | BraintreeGateway, params?: QueryParamsRetrieve<BraintreeGateway>, options?: ResourcesConfig): Promise<BraintreeGateway>;
15699
15835
  isBraintreeGateway(resource: any): resource is BraintreeGateway;
15700
15836
  relationship(id: string | ResourceId | null): BraintreeGatewayRel;
15701
15837
  relationshipToMany(...ids: string[]): BraintreeGatewayRel[];
@@ -15709,7 +15845,7 @@ type CheckoutComGatewayRel = ResourceRel & {
15709
15845
  type CheckoutComPaymentRel = ResourceRel & {
15710
15846
  type: CheckoutComPaymentType;
15711
15847
  };
15712
- type CheckoutComGatewaySort = Pick<CheckoutComGateway, 'id' | 'name'> & ResourceSort;
15848
+ type CheckoutComGatewaySort = Pick<CheckoutComGateway, 'id' | 'name' | 'disabled_at'> & ResourceSort;
15713
15849
  interface CheckoutComGateway extends Resource {
15714
15850
  readonly type: CheckoutComGatewayType;
15715
15851
  /**
@@ -15717,6 +15853,16 @@ interface CheckoutComGateway extends Resource {
15717
15853
  * @example ```"US payment gateway"```
15718
15854
  */
15719
15855
  name: string;
15856
+ /**
15857
+ * Indicates if the payment source is forced on the editable order upon receiving a successful event from the gateway.
15858
+ * @example ```true```
15859
+ */
15860
+ force_payments?: boolean | null;
15861
+ /**
15862
+ * Time at which this resource was disabled.
15863
+ * @example ```"2018-01-01T12:00:00.000Z"```
15864
+ */
15865
+ disabled_at?: string | null;
15720
15866
  /**
15721
15867
  * The gateway webhook endpoint ID, generated automatically.
15722
15868
  * @example ```"xxxx-yyyy-zzzz"```
@@ -15743,6 +15889,21 @@ interface CheckoutComGatewayCreate extends ResourceCreate {
15743
15889
  * @example ```"US payment gateway"```
15744
15890
  */
15745
15891
  name: string;
15892
+ /**
15893
+ * Indicates if the payment source is forced on the editable order upon receiving a successful event from the gateway.
15894
+ * @example ```true```
15895
+ */
15896
+ force_payments?: boolean | null;
15897
+ /**
15898
+ * Send this attribute if you want to mark this resource as disabled.
15899
+ * @example ```true```
15900
+ */
15901
+ _disable?: boolean | null;
15902
+ /**
15903
+ * Send this attribute if you want to mark this resource as enabled.
15904
+ * @example ```true```
15905
+ */
15906
+ _enable?: boolean | null;
15746
15907
  /**
15747
15908
  * The gateway secret key.
15748
15909
  * @example ```"sk_test_xxxx-yyyy-zzzz"```
@@ -15761,6 +15922,21 @@ interface CheckoutComGatewayUpdate extends ResourceUpdate {
15761
15922
  * @example ```"US payment gateway"```
15762
15923
  */
15763
15924
  name?: string | null;
15925
+ /**
15926
+ * Indicates if the payment source is forced on the editable order upon receiving a successful event from the gateway.
15927
+ * @example ```true```
15928
+ */
15929
+ force_payments?: boolean | null;
15930
+ /**
15931
+ * Send this attribute if you want to mark this resource as disabled.
15932
+ * @example ```true```
15933
+ */
15934
+ _disable?: boolean | null;
15935
+ /**
15936
+ * Send this attribute if you want to mark this resource as enabled.
15937
+ * @example ```true```
15938
+ */
15939
+ _enable?: boolean | null;
15764
15940
  /**
15765
15941
  * The gateway secret key.
15766
15942
  * @example ```"sk_test_xxxx-yyyy-zzzz"```
@@ -15782,6 +15958,8 @@ declare class CheckoutComGateways extends ApiResource<CheckoutComGateway> {
15782
15958
  versions(checkoutComGatewayId: string | CheckoutComGateway, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>>;
15783
15959
  event_stores(checkoutComGatewayId: string | CheckoutComGateway, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>>;
15784
15960
  checkout_com_payments(checkoutComGatewayId: string | CheckoutComGateway, params?: QueryParamsList<CheckoutComPayment>, options?: ResourcesConfig): Promise<ListResponse<CheckoutComPayment>>;
15961
+ _disable(id: string | CheckoutComGateway, params?: QueryParamsRetrieve<CheckoutComGateway>, options?: ResourcesConfig): Promise<CheckoutComGateway>;
15962
+ _enable(id: string | CheckoutComGateway, params?: QueryParamsRetrieve<CheckoutComGateway>, options?: ResourcesConfig): Promise<CheckoutComGateway>;
15785
15963
  isCheckoutComGateway(resource: any): resource is CheckoutComGateway;
15786
15964
  relationship(id: string | ResourceId | null): CheckoutComGatewayRel;
15787
15965
  relationshipToMany(...ids: string[]): CheckoutComGatewayRel[];
@@ -16182,7 +16360,7 @@ type ExternalGatewayType = 'external_gateways';
16182
16360
  type ExternalGatewayRel = ResourceRel & {
16183
16361
  type: ExternalGatewayType;
16184
16362
  };
16185
- type ExternalGatewaySort = Pick<ExternalGateway, 'id' | 'name' | 'circuit_state' | 'circuit_failure_count'> & ResourceSort;
16363
+ type ExternalGatewaySort = Pick<ExternalGateway, 'id' | 'name' | 'disabled_at' | 'circuit_state' | 'circuit_failure_count'> & ResourceSort;
16186
16364
  interface ExternalGateway extends Resource {
16187
16365
  readonly type: ExternalGatewayType;
16188
16366
  /**
@@ -16190,6 +16368,16 @@ interface ExternalGateway extends Resource {
16190
16368
  * @example ```"US payment gateway"```
16191
16369
  */
16192
16370
  name: string;
16371
+ /**
16372
+ * Indicates if the payment source is forced on the editable order upon receiving a successful event from the gateway.
16373
+ * @example ```true```
16374
+ */
16375
+ force_payments?: boolean | null;
16376
+ /**
16377
+ * Time at which this resource was disabled.
16378
+ * @example ```"2018-01-01T12:00:00.000Z"```
16379
+ */
16380
+ disabled_at?: string | null;
16193
16381
  /**
16194
16382
  * The endpoint used by the external gateway to authorize payments.
16195
16383
  * @example ```"https://external_gateway.com/authorize"```
@@ -16246,6 +16434,21 @@ interface ExternalGatewayCreate extends ResourceCreate {
16246
16434
  * @example ```"US payment gateway"```
16247
16435
  */
16248
16436
  name: string;
16437
+ /**
16438
+ * Indicates if the payment source is forced on the editable order upon receiving a successful event from the gateway.
16439
+ * @example ```true```
16440
+ */
16441
+ force_payments?: boolean | null;
16442
+ /**
16443
+ * Send this attribute if you want to mark this resource as disabled.
16444
+ * @example ```true```
16445
+ */
16446
+ _disable?: boolean | null;
16447
+ /**
16448
+ * Send this attribute if you want to mark this resource as enabled.
16449
+ * @example ```true```
16450
+ */
16451
+ _enable?: boolean | null;
16249
16452
  /**
16250
16453
  * The endpoint used by the external gateway to authorize payments.
16251
16454
  * @example ```"https://external_gateway.com/authorize"```
@@ -16283,6 +16486,21 @@ interface ExternalGatewayUpdate extends ResourceUpdate {
16283
16486
  * @example ```"US payment gateway"```
16284
16487
  */
16285
16488
  name?: string | null;
16489
+ /**
16490
+ * Indicates if the payment source is forced on the editable order upon receiving a successful event from the gateway.
16491
+ * @example ```true```
16492
+ */
16493
+ force_payments?: boolean | null;
16494
+ /**
16495
+ * Send this attribute if you want to mark this resource as disabled.
16496
+ * @example ```true```
16497
+ */
16498
+ _disable?: boolean | null;
16499
+ /**
16500
+ * Send this attribute if you want to mark this resource as enabled.
16501
+ * @example ```true```
16502
+ */
16503
+ _enable?: boolean | null;
16286
16504
  /**
16287
16505
  * The endpoint used by the external gateway to authorize payments.
16288
16506
  * @example ```"https://external_gateway.com/authorize"```
@@ -16328,6 +16546,8 @@ declare class ExternalGateways extends ApiResource<ExternalGateway> {
16328
16546
  versions(externalGatewayId: string | ExternalGateway, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>>;
16329
16547
  event_stores(externalGatewayId: string | ExternalGateway, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>>;
16330
16548
  external_payments(externalGatewayId: string | ExternalGateway, params?: QueryParamsList<ExternalPayment>, options?: ResourcesConfig): Promise<ListResponse<ExternalPayment>>;
16549
+ _disable(id: string | ExternalGateway, params?: QueryParamsRetrieve<ExternalGateway>, options?: ResourcesConfig): Promise<ExternalGateway>;
16550
+ _enable(id: string | ExternalGateway, params?: QueryParamsRetrieve<ExternalGateway>, options?: ResourcesConfig): Promise<ExternalGateway>;
16331
16551
  _reset_circuit(id: string | ExternalGateway, params?: QueryParamsRetrieve<ExternalGateway>, options?: ResourcesConfig): Promise<ExternalGateway>;
16332
16552
  isExternalGateway(resource: any): resource is ExternalGateway;
16333
16553
  relationship(id: string | ResourceId | null): ExternalGatewayRel;
@@ -16643,7 +16863,7 @@ type KlarnaGatewayRel = ResourceRel & {
16643
16863
  type KlarnaPaymentRel = ResourceRel & {
16644
16864
  type: KlarnaPaymentType;
16645
16865
  };
16646
- type KlarnaGatewaySort = Pick<KlarnaGateway, 'id' | 'name'> & ResourceSort;
16866
+ type KlarnaGatewaySort = Pick<KlarnaGateway, 'id' | 'name' | 'disabled_at'> & ResourceSort;
16647
16867
  interface KlarnaGateway extends Resource {
16648
16868
  readonly type: KlarnaGatewayType;
16649
16869
  /**
@@ -16651,6 +16871,16 @@ interface KlarnaGateway extends Resource {
16651
16871
  * @example ```"US payment gateway"```
16652
16872
  */
16653
16873
  name: string;
16874
+ /**
16875
+ * Indicates if the payment source is forced on the editable order upon receiving a successful event from the gateway.
16876
+ * @example ```true```
16877
+ */
16878
+ force_payments?: boolean | null;
16879
+ /**
16880
+ * Time at which this resource was disabled.
16881
+ * @example ```"2018-01-01T12:00:00.000Z"```
16882
+ */
16883
+ disabled_at?: string | null;
16654
16884
  payment_methods?: PaymentMethod[] | null;
16655
16885
  versions?: Version[] | null;
16656
16886
  event_stores?: EventStore[] | null;
@@ -16662,6 +16892,21 @@ interface KlarnaGatewayCreate extends ResourceCreate {
16662
16892
  * @example ```"US payment gateway"```
16663
16893
  */
16664
16894
  name: string;
16895
+ /**
16896
+ * Indicates if the payment source is forced on the editable order upon receiving a successful event from the gateway.
16897
+ * @example ```true```
16898
+ */
16899
+ force_payments?: boolean | null;
16900
+ /**
16901
+ * Send this attribute if you want to mark this resource as disabled.
16902
+ * @example ```true```
16903
+ */
16904
+ _disable?: boolean | null;
16905
+ /**
16906
+ * Send this attribute if you want to mark this resource as enabled.
16907
+ * @example ```true```
16908
+ */
16909
+ _enable?: boolean | null;
16665
16910
  /**
16666
16911
  * The gateway country code one of EU, US, or OC.
16667
16912
  * @example ```"EU"```
@@ -16685,6 +16930,21 @@ interface KlarnaGatewayUpdate extends ResourceUpdate {
16685
16930
  * @example ```"US payment gateway"```
16686
16931
  */
16687
16932
  name?: string | null;
16933
+ /**
16934
+ * Indicates if the payment source is forced on the editable order upon receiving a successful event from the gateway.
16935
+ * @example ```true```
16936
+ */
16937
+ force_payments?: boolean | null;
16938
+ /**
16939
+ * Send this attribute if you want to mark this resource as disabled.
16940
+ * @example ```true```
16941
+ */
16942
+ _disable?: boolean | null;
16943
+ /**
16944
+ * Send this attribute if you want to mark this resource as enabled.
16945
+ * @example ```true```
16946
+ */
16947
+ _enable?: boolean | null;
16688
16948
  /**
16689
16949
  * The gateway country code one of EU, US, or OC.
16690
16950
  * @example ```"EU"```
@@ -16711,6 +16971,8 @@ declare class KlarnaGateways extends ApiResource<KlarnaGateway> {
16711
16971
  versions(klarnaGatewayId: string | KlarnaGateway, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>>;
16712
16972
  event_stores(klarnaGatewayId: string | KlarnaGateway, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>>;
16713
16973
  klarna_payments(klarnaGatewayId: string | KlarnaGateway, params?: QueryParamsList<KlarnaPayment>, options?: ResourcesConfig): Promise<ListResponse<KlarnaPayment>>;
16974
+ _disable(id: string | KlarnaGateway, params?: QueryParamsRetrieve<KlarnaGateway>, options?: ResourcesConfig): Promise<KlarnaGateway>;
16975
+ _enable(id: string | KlarnaGateway, params?: QueryParamsRetrieve<KlarnaGateway>, options?: ResourcesConfig): Promise<KlarnaGateway>;
16714
16976
  isKlarnaGateway(resource: any): resource is KlarnaGateway;
16715
16977
  relationship(id: string | ResourceId | null): KlarnaGatewayRel;
16716
16978
  relationshipToMany(...ids: string[]): KlarnaGatewayRel[];
@@ -16721,7 +16983,7 @@ type ManualGatewayType = 'manual_gateways';
16721
16983
  type ManualGatewayRel = ResourceRel & {
16722
16984
  type: ManualGatewayType;
16723
16985
  };
16724
- type ManualGatewaySort = Pick<ManualGateway, 'id' | 'name'> & ResourceSort;
16986
+ type ManualGatewaySort = Pick<ManualGateway, 'id' | 'name' | 'disabled_at'> & ResourceSort;
16725
16987
  interface ManualGateway extends Resource {
16726
16988
  readonly type: ManualGatewayType;
16727
16989
  /**
@@ -16729,6 +16991,16 @@ interface ManualGateway extends Resource {
16729
16991
  * @example ```"US payment gateway"```
16730
16992
  */
16731
16993
  name: string;
16994
+ /**
16995
+ * Indicates if the payment source is forced on the editable order upon receiving a successful event from the gateway.
16996
+ * @example ```true```
16997
+ */
16998
+ force_payments?: boolean | null;
16999
+ /**
17000
+ * Time at which this resource was disabled.
17001
+ * @example ```"2018-01-01T12:00:00.000Z"```
17002
+ */
17003
+ disabled_at?: string | null;
16732
17004
  payment_methods?: PaymentMethod[] | null;
16733
17005
  versions?: Version[] | null;
16734
17006
  event_stores?: EventStore[] | null;
@@ -16739,6 +17011,21 @@ interface ManualGatewayCreate extends ResourceCreate {
16739
17011
  * @example ```"US payment gateway"```
16740
17012
  */
16741
17013
  name: string;
17014
+ /**
17015
+ * Indicates if the payment source is forced on the editable order upon receiving a successful event from the gateway.
17016
+ * @example ```true```
17017
+ */
17018
+ force_payments?: boolean | null;
17019
+ /**
17020
+ * Send this attribute if you want to mark this resource as disabled.
17021
+ * @example ```true```
17022
+ */
17023
+ _disable?: boolean | null;
17024
+ /**
17025
+ * Send this attribute if you want to mark this resource as enabled.
17026
+ * @example ```true```
17027
+ */
17028
+ _enable?: boolean | null;
16742
17029
  }
16743
17030
  interface ManualGatewayUpdate extends ResourceUpdate {
16744
17031
  /**
@@ -16746,6 +17033,21 @@ interface ManualGatewayUpdate extends ResourceUpdate {
16746
17033
  * @example ```"US payment gateway"```
16747
17034
  */
16748
17035
  name?: string | null;
17036
+ /**
17037
+ * Indicates if the payment source is forced on the editable order upon receiving a successful event from the gateway.
17038
+ * @example ```true```
17039
+ */
17040
+ force_payments?: boolean | null;
17041
+ /**
17042
+ * Send this attribute if you want to mark this resource as disabled.
17043
+ * @example ```true```
17044
+ */
17045
+ _disable?: boolean | null;
17046
+ /**
17047
+ * Send this attribute if you want to mark this resource as enabled.
17048
+ * @example ```true```
17049
+ */
17050
+ _enable?: boolean | null;
16749
17051
  }
16750
17052
  declare class ManualGateways extends ApiResource<ManualGateway> {
16751
17053
  static readonly TYPE: ManualGatewayType;
@@ -16755,6 +17057,8 @@ declare class ManualGateways extends ApiResource<ManualGateway> {
16755
17057
  payment_methods(manualGatewayId: string | ManualGateway, params?: QueryParamsList<PaymentMethod>, options?: ResourcesConfig): Promise<ListResponse<PaymentMethod>>;
16756
17058
  versions(manualGatewayId: string | ManualGateway, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>>;
16757
17059
  event_stores(manualGatewayId: string | ManualGateway, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>>;
17060
+ _disable(id: string | ManualGateway, params?: QueryParamsRetrieve<ManualGateway>, options?: ResourcesConfig): Promise<ManualGateway>;
17061
+ _enable(id: string | ManualGateway, params?: QueryParamsRetrieve<ManualGateway>, options?: ResourcesConfig): Promise<ManualGateway>;
16758
17062
  isManualGateway(resource: any): resource is ManualGateway;
16759
17063
  relationship(id: string | ResourceId | null): ManualGatewayRel;
16760
17064
  relationshipToMany(...ids: string[]): ManualGatewayRel[];
@@ -17050,7 +17354,7 @@ type PaypalGatewayType = 'paypal_gateways';
17050
17354
  type PaypalGatewayRel = ResourceRel & {
17051
17355
  type: PaypalGatewayType;
17052
17356
  };
17053
- type PaypalGatewaySort = Pick<PaypalGateway, 'id' | 'name'> & ResourceSort;
17357
+ type PaypalGatewaySort = Pick<PaypalGateway, 'id' | 'name' | 'disabled_at'> & ResourceSort;
17054
17358
  interface PaypalGateway extends Resource {
17055
17359
  readonly type: PaypalGatewayType;
17056
17360
  /**
@@ -17058,6 +17362,16 @@ interface PaypalGateway extends Resource {
17058
17362
  * @example ```"US payment gateway"```
17059
17363
  */
17060
17364
  name: string;
17365
+ /**
17366
+ * Indicates if the payment source is forced on the editable order upon receiving a successful event from the gateway.
17367
+ * @example ```true```
17368
+ */
17369
+ force_payments?: boolean | null;
17370
+ /**
17371
+ * Time at which this resource was disabled.
17372
+ * @example ```"2018-01-01T12:00:00.000Z"```
17373
+ */
17374
+ disabled_at?: string | null;
17061
17375
  payment_methods?: PaymentMethod[] | null;
17062
17376
  versions?: Version[] | null;
17063
17377
  event_stores?: EventStore[] | null;
@@ -17069,6 +17383,21 @@ interface PaypalGatewayCreate extends ResourceCreate {
17069
17383
  * @example ```"US payment gateway"```
17070
17384
  */
17071
17385
  name: string;
17386
+ /**
17387
+ * Indicates if the payment source is forced on the editable order upon receiving a successful event from the gateway.
17388
+ * @example ```true```
17389
+ */
17390
+ force_payments?: boolean | null;
17391
+ /**
17392
+ * Send this attribute if you want to mark this resource as disabled.
17393
+ * @example ```true```
17394
+ */
17395
+ _disable?: boolean | null;
17396
+ /**
17397
+ * Send this attribute if you want to mark this resource as enabled.
17398
+ * @example ```true```
17399
+ */
17400
+ _enable?: boolean | null;
17072
17401
  /**
17073
17402
  * The gateway client ID.
17074
17403
  * @example ```"xxxx-yyyy-zzzz"```
@@ -17086,6 +17415,21 @@ interface PaypalGatewayUpdate extends ResourceUpdate {
17086
17415
  * @example ```"US payment gateway"```
17087
17416
  */
17088
17417
  name?: string | null;
17418
+ /**
17419
+ * Indicates if the payment source is forced on the editable order upon receiving a successful event from the gateway.
17420
+ * @example ```true```
17421
+ */
17422
+ force_payments?: boolean | null;
17423
+ /**
17424
+ * Send this attribute if you want to mark this resource as disabled.
17425
+ * @example ```true```
17426
+ */
17427
+ _disable?: boolean | null;
17428
+ /**
17429
+ * Send this attribute if you want to mark this resource as enabled.
17430
+ * @example ```true```
17431
+ */
17432
+ _enable?: boolean | null;
17089
17433
  /**
17090
17434
  * The gateway client ID.
17091
17435
  * @example ```"xxxx-yyyy-zzzz"```
@@ -17106,6 +17450,8 @@ declare class PaypalGateways extends ApiResource<PaypalGateway> {
17106
17450
  versions(paypalGatewayId: string | PaypalGateway, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>>;
17107
17451
  event_stores(paypalGatewayId: string | PaypalGateway, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>>;
17108
17452
  paypal_payments(paypalGatewayId: string | PaypalGateway, params?: QueryParamsList<PaypalPayment>, options?: ResourcesConfig): Promise<ListResponse<PaypalPayment>>;
17453
+ _disable(id: string | PaypalGateway, params?: QueryParamsRetrieve<PaypalGateway>, options?: ResourcesConfig): Promise<PaypalGateway>;
17454
+ _enable(id: string | PaypalGateway, params?: QueryParamsRetrieve<PaypalGateway>, options?: ResourcesConfig): Promise<PaypalGateway>;
17109
17455
  isPaypalGateway(resource: any): resource is PaypalGateway;
17110
17456
  relationship(id: string | ResourceId | null): PaypalGatewayRel;
17111
17457
  relationshipToMany(...ids: string[]): PaypalGatewayRel[];
@@ -17119,7 +17465,7 @@ type SatispayGatewayRel = ResourceRel & {
17119
17465
  type SatispayPaymentRel = ResourceRel & {
17120
17466
  type: SatispayPaymentType;
17121
17467
  };
17122
- type SatispayGatewaySort = Pick<SatispayGateway, 'id' | 'name'> & ResourceSort;
17468
+ type SatispayGatewaySort = Pick<SatispayGateway, 'id' | 'name' | 'disabled_at'> & ResourceSort;
17123
17469
  interface SatispayGateway extends Resource {
17124
17470
  readonly type: SatispayGatewayType;
17125
17471
  /**
@@ -17127,6 +17473,16 @@ interface SatispayGateway extends Resource {
17127
17473
  * @example ```"US payment gateway"```
17128
17474
  */
17129
17475
  name: string;
17476
+ /**
17477
+ * Indicates if the payment source is forced on the editable order upon receiving a successful event from the gateway.
17478
+ * @example ```true```
17479
+ */
17480
+ force_payments?: boolean | null;
17481
+ /**
17482
+ * Time at which this resource was disabled.
17483
+ * @example ```"2018-01-01T12:00:00.000Z"```
17484
+ */
17485
+ disabled_at?: string | null;
17130
17486
  /**
17131
17487
  * Activation code generated from the Satispay Dashboard.
17132
17488
  * @example ```"623ECX"```
@@ -17153,6 +17509,21 @@ interface SatispayGatewayCreate extends ResourceCreate {
17153
17509
  * @example ```"US payment gateway"```
17154
17510
  */
17155
17511
  name: string;
17512
+ /**
17513
+ * Indicates if the payment source is forced on the editable order upon receiving a successful event from the gateway.
17514
+ * @example ```true```
17515
+ */
17516
+ force_payments?: boolean | null;
17517
+ /**
17518
+ * Send this attribute if you want to mark this resource as disabled.
17519
+ * @example ```true```
17520
+ */
17521
+ _disable?: boolean | null;
17522
+ /**
17523
+ * Send this attribute if you want to mark this resource as enabled.
17524
+ * @example ```true```
17525
+ */
17526
+ _enable?: boolean | null;
17156
17527
  /**
17157
17528
  * Activation code generated from the Satispay Dashboard.
17158
17529
  * @example ```"623ECX"```
@@ -17166,6 +17537,21 @@ interface SatispayGatewayUpdate extends ResourceUpdate {
17166
17537
  * @example ```"US payment gateway"```
17167
17538
  */
17168
17539
  name?: string | null;
17540
+ /**
17541
+ * Indicates if the payment source is forced on the editable order upon receiving a successful event from the gateway.
17542
+ * @example ```true```
17543
+ */
17544
+ force_payments?: boolean | null;
17545
+ /**
17546
+ * Send this attribute if you want to mark this resource as disabled.
17547
+ * @example ```true```
17548
+ */
17549
+ _disable?: boolean | null;
17550
+ /**
17551
+ * Send this attribute if you want to mark this resource as enabled.
17552
+ * @example ```true```
17553
+ */
17554
+ _enable?: boolean | null;
17169
17555
  satispay_payments?: SatispayPaymentRel[] | null;
17170
17556
  }
17171
17557
  declare class SatispayGateways extends ApiResource<SatispayGateway> {
@@ -17177,6 +17563,8 @@ declare class SatispayGateways extends ApiResource<SatispayGateway> {
17177
17563
  versions(satispayGatewayId: string | SatispayGateway, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>>;
17178
17564
  event_stores(satispayGatewayId: string | SatispayGateway, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>>;
17179
17565
  satispay_payments(satispayGatewayId: string | SatispayGateway, params?: QueryParamsList<SatispayPayment>, options?: ResourcesConfig): Promise<ListResponse<SatispayPayment>>;
17566
+ _disable(id: string | SatispayGateway, params?: QueryParamsRetrieve<SatispayGateway>, options?: ResourcesConfig): Promise<SatispayGateway>;
17567
+ _enable(id: string | SatispayGateway, params?: QueryParamsRetrieve<SatispayGateway>, options?: ResourcesConfig): Promise<SatispayGateway>;
17180
17568
  isSatispayGateway(resource: any): resource is SatispayGateway;
17181
17569
  relationship(id: string | ResourceId | null): SatispayGatewayRel;
17182
17570
  relationshipToMany(...ids: string[]): SatispayGatewayRel[];
@@ -17187,7 +17575,7 @@ type StripeGatewayType = 'stripe_gateways';
17187
17575
  type StripeGatewayRel = ResourceRel & {
17188
17576
  type: StripeGatewayType;
17189
17577
  };
17190
- type StripeGatewaySort = Pick<StripeGateway, 'id' | 'name'> & ResourceSort;
17578
+ type StripeGatewaySort = Pick<StripeGateway, 'id' | 'name' | 'disabled_at'> & ResourceSort;
17191
17579
  interface StripeGateway extends Resource {
17192
17580
  readonly type: StripeGatewayType;
17193
17581
  /**
@@ -17195,6 +17583,12 @@ interface StripeGateway extends Resource {
17195
17583
  * @example ```"US payment gateway"```
17196
17584
  */
17197
17585
  name: string;
17586
+ force_payments?: boolean | null;
17587
+ /**
17588
+ * Time at which this resource was disabled.
17589
+ * @example ```"2018-01-01T12:00:00.000Z"```
17590
+ */
17591
+ disabled_at?: string | null;
17198
17592
  /**
17199
17593
  * The account (if any) for which the funds of the PaymentIntent are intended.
17200
17594
  * @example ```"acct_xxxx-yyyy-zzzz"```
@@ -17205,11 +17599,6 @@ interface StripeGateway extends Resource {
17205
17599
  * @example ```true```
17206
17600
  */
17207
17601
  auto_payments?: boolean | null;
17208
- /**
17209
- * Indicates if the payment source is forced on the editable order upon receiving a successful event from Stripe.
17210
- * @example ```true```
17211
- */
17212
- force_payments?: boolean | null;
17213
17602
  /**
17214
17603
  * The gateway webhook endpoint ID, generated automatically.
17215
17604
  * @example ```"xxxx-yyyy-zzzz"```
@@ -17236,6 +17625,17 @@ interface StripeGatewayCreate extends ResourceCreate {
17236
17625
  * @example ```"US payment gateway"```
17237
17626
  */
17238
17627
  name: string;
17628
+ force_payments?: boolean | null;
17629
+ /**
17630
+ * Send this attribute if you want to mark this resource as disabled.
17631
+ * @example ```true```
17632
+ */
17633
+ _disable?: boolean | null;
17634
+ /**
17635
+ * Send this attribute if you want to mark this resource as enabled.
17636
+ * @example ```true```
17637
+ */
17638
+ _enable?: boolean | null;
17239
17639
  /**
17240
17640
  * The gateway login.
17241
17641
  * @example ```"sk_live_xxxx-yyyy-zzzz"```
@@ -17256,11 +17656,6 @@ interface StripeGatewayCreate extends ResourceCreate {
17256
17656
  * @example ```true```
17257
17657
  */
17258
17658
  auto_payments?: boolean | null;
17259
- /**
17260
- * Indicates if the payment source is forced on the editable order upon receiving a successful event from Stripe.
17261
- * @example ```true```
17262
- */
17263
- force_payments?: boolean | null;
17264
17659
  }
17265
17660
  interface StripeGatewayUpdate extends ResourceUpdate {
17266
17661
  /**
@@ -17268,6 +17663,17 @@ interface StripeGatewayUpdate extends ResourceUpdate {
17268
17663
  * @example ```"US payment gateway"```
17269
17664
  */
17270
17665
  name?: string | null;
17666
+ force_payments?: boolean | null;
17667
+ /**
17668
+ * Send this attribute if you want to mark this resource as disabled.
17669
+ * @example ```true```
17670
+ */
17671
+ _disable?: boolean | null;
17672
+ /**
17673
+ * Send this attribute if you want to mark this resource as enabled.
17674
+ * @example ```true```
17675
+ */
17676
+ _enable?: boolean | null;
17271
17677
  /**
17272
17678
  * The account (if any) for which the funds of the PaymentIntent are intended.
17273
17679
  * @example ```"acct_xxxx-yyyy-zzzz"```
@@ -17278,11 +17684,6 @@ interface StripeGatewayUpdate extends ResourceUpdate {
17278
17684
  * @example ```true```
17279
17685
  */
17280
17686
  auto_payments?: boolean | null;
17281
- /**
17282
- * Indicates if the payment source is forced on the editable order upon receiving a successful event from Stripe.
17283
- * @example ```true```
17284
- */
17285
- force_payments?: boolean | null;
17286
17687
  }
17287
17688
  declare class StripeGateways extends ApiResource<StripeGateway> {
17288
17689
  static readonly TYPE: StripeGatewayType;
@@ -17293,6 +17694,8 @@ declare class StripeGateways extends ApiResource<StripeGateway> {
17293
17694
  versions(stripeGatewayId: string | StripeGateway, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>>;
17294
17695
  event_stores(stripeGatewayId: string | StripeGateway, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>>;
17295
17696
  stripe_payments(stripeGatewayId: string | StripeGateway, params?: QueryParamsList<StripePayment>, options?: ResourcesConfig): Promise<ListResponse<StripePayment>>;
17697
+ _disable(id: string | StripeGateway, params?: QueryParamsRetrieve<StripeGateway>, options?: ResourcesConfig): Promise<StripeGateway>;
17698
+ _enable(id: string | StripeGateway, params?: QueryParamsRetrieve<StripeGateway>, options?: ResourcesConfig): Promise<StripeGateway>;
17296
17699
  isStripeGateway(resource: any): resource is StripeGateway;
17297
17700
  relationship(id: string | ResourceId | null): StripeGatewayRel;
17298
17701
  relationshipToMany(...ids: string[]): StripeGatewayRel[];
@@ -17727,7 +18130,7 @@ type CommerceLayerInitConfig = SdkConfig & ResourcesInitConfig;
17727
18130
  type CommerceLayerConfig = Partial<CommerceLayerInitConfig>;
17728
18131
  declare class CommerceLayerClient {
17729
18132
  #private;
17730
- readonly openApiSchemaVersion = "7.9.10";
18133
+ readonly openApiSchemaVersion = "7.9.11";
17731
18134
  constructor(config: CommerceLayerInitConfig);
17732
18135
  get addresses(): Addresses;
17733
18136
  get adjustments(): Adjustments;