rebilly-js-sdk 47.7.0 → 47.8.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.
@@ -339,6 +339,57 @@ declare module rebilly {
339
339
  type DeleteInvoiceTimelineResponse = operations['DeleteInvoiceTimeline']['responses']['204']
340
340
  type DeleteInvoiceTimelineResponsePromise = Promise<{fields: DeleteInvoiceTimelineResponse}>
341
341
 
342
+ type GetCreditMemoCollectionRequest = operations['GetCreditMemoCollection']['parameters']["query"] & (operations['GetCreditMemoCollection']['parameters'] extends {path: {}} ? operations['GetCreditMemoCollection']['parameters']["path"] : {})
343
+
344
+ type GetCreditMemoCollectionResponse = operations['GetCreditMemoCollection']['responses']['200']['content']['application/json'][0]
345
+ type GetCreditMemoCollectionResponsePromise = Promise<{ items: {fields: GetCreditMemoCollectionResponse}[], getJSON: object, total?: number, offset?: number, limit?: number }>
346
+ type PostCreditMemoRequest = operations['PostCreditMemo']['requestBody']['content']['application/json']
347
+ type CreateCreditMemoRequest = { id: String, data: PostCreditMemoRequest, expand?: String }
348
+ type PostCreditMemoResponse = operations['PostCreditMemo']['responses']['201']['content']['application/json']
349
+ type PostCreditMemoResponsePromise = Promise<{fields: PostCreditMemoResponse}>
350
+
351
+ type GetCreditMemoRequest = operations['GetCreditMemo']['parameters'] & { id : String }
352
+
353
+ type GetCreditMemoResponse = operations['GetCreditMemo']['responses']['200']['content']['application/json']
354
+ type GetCreditMemoResponsePromise = Promise<{fields: GetCreditMemoResponse}>
355
+ type PutCreditMemoRequest = operations['PutCreditMemo']['requestBody']['content']['application/json']
356
+ type PutCreditMemoResponse = operations['PutCreditMemo']['responses']['201']['content']['application/json']
357
+ type PutCreditMemoResponsePromise = Promise<{fields: PutCreditMemoResponse}>
358
+
359
+ type PostCreditMemoVoidResponse = operations['PostCreditMemoVoid']['responses']['201']['content']['application/json']
360
+ type PostCreditMemoVoidResponsePromise = Promise<{fields: PostCreditMemoVoidResponse}>
361
+
362
+ type GetCreditMemoTimelineCollectionRequest = operations['GetCreditMemoTimelineCollection']['parameters']["query"] & (operations['GetCreditMemoTimelineCollection']['parameters'] extends {path: {}} ? operations['GetCreditMemoTimelineCollection']['parameters']["path"] : {}) & { id : String }
363
+
364
+ type GetCreditMemoTimelineCollectionResponse = operations['GetCreditMemoTimelineCollection']['responses']['200']['content']['application/json'][0]
365
+ type GetCreditMemoTimelineCollectionResponsePromise = Promise<{ items: {fields: GetCreditMemoTimelineCollectionResponse}[], getJSON: object, total?: number, offset?: number, limit?: number }>
366
+ type PostCreditMemoTimelineRequest = operations['PostCreditMemoTimeline']['requestBody']['content']['application/json']
367
+ type CreateCreditMemoTimelineRequest = { id: String, data: PostCreditMemoTimelineRequest, expand?: String }
368
+ type PostCreditMemoTimelineResponse = operations['PostCreditMemoTimeline']['responses']['201']['content']['application/json']
369
+ type PostCreditMemoTimelineResponsePromise = Promise<{fields: PostCreditMemoTimelineResponse}>
370
+
371
+ type GetCreditMemoTimelineRequest = { id : String,messageId : String }
372
+
373
+ type GetCreditMemoTimelineResponse = operations['GetCreditMemoTimeline']['responses']['200']['content']['application/json']
374
+ type GetCreditMemoTimelineResponsePromise = Promise<{fields: GetCreditMemoTimelineResponse}>
375
+ type DeleteCreditMemoTimelineResponse = operations['DeleteCreditMemoTimeline']['responses']['204']
376
+ type DeleteCreditMemoTimelineResponsePromise = Promise<{fields: DeleteCreditMemoTimelineResponse}>
377
+
378
+ type GetInvoiceCreditMemoAllocationCollectionRequest = operations['GetInvoiceCreditMemoAllocationCollection']['parameters']["query"] & (operations['GetInvoiceCreditMemoAllocationCollection']['parameters'] extends {path: {}} ? operations['GetInvoiceCreditMemoAllocationCollection']['parameters']["path"] : {}) & { id : String }
379
+
380
+ type GetInvoiceCreditMemoAllocationCollectionResponse = operations['GetInvoiceCreditMemoAllocationCollection']['responses']['200']['content']['application/json'][0]
381
+ type GetInvoiceCreditMemoAllocationCollectionResponsePromise = Promise<{ items: {fields: GetInvoiceCreditMemoAllocationCollectionResponse}[], getJSON: object, total?: number, offset?: number, limit?: number }>
382
+
383
+ type GetInvoiceCreditMemoAllocationRequest = operations['GetInvoiceCreditMemoAllocation']['parameters'] & { id : String,creditMemoId : String }
384
+
385
+ type GetInvoiceCreditMemoAllocationResponse = operations['GetInvoiceCreditMemoAllocation']['responses']['200']['content']['application/json']
386
+ type GetInvoiceCreditMemoAllocationResponsePromise = Promise<{fields: GetInvoiceCreditMemoAllocationResponse}>
387
+ type PutInvoiceCreditMemoAllocationRequest = operations['PutInvoiceCreditMemoAllocation']['requestBody']['content']['application/json']
388
+ type PutInvoiceCreditMemoAllocationResponse = operations['PutInvoiceCreditMemoAllocation']['responses']['200']['content']['application/json']
389
+ type PutInvoiceCreditMemoAllocationResponsePromise = Promise<{fields: PutInvoiceCreditMemoAllocationResponse}>
390
+ type DeleteInvoiceCreditMemoAllocationResponse = operations['DeleteInvoiceCreditMemoAllocation']['responses']['204']
391
+ type DeleteInvoiceCreditMemoAllocationResponsePromise = Promise<{fields: DeleteInvoiceCreditMemoAllocationResponse}>
392
+
342
393
  type GetKycRequestCollectionRequest = operations['GetKycRequestCollection']['parameters']["query"] & (operations['GetKycRequestCollection']['parameters'] extends {path: {}} ? operations['GetKycRequestCollection']['parameters']["path"] : {})
343
394
 
344
395
  type GetKycRequestCollectionResponse = operations['GetKycRequestCollection']['responses']['200']['content']['application/json'][0]
@@ -397,6 +448,9 @@ declare module rebilly {
397
448
  type PostKycDocumentStopReviewResponse = operations['PostKycDocumentStopReview']['responses']['201']['content']['application/json']
398
449
  type PostKycDocumentStopReviewResponsePromise = Promise<{fields: PostKycDocumentStopReviewResponse}>
399
450
 
451
+
452
+ type GetKycSettingsResponse = operations['GetKycSettings']['responses']['200']['content']['application/json']
453
+ type GetKycSettingsResponsePromise = Promise<{fields: GetKycSettingsResponse}>
400
454
  type PutKycSettingsRequest = operations['PutKycSettings']['requestBody']['content']['application/json']
401
455
  type PutKycSettingsResponse = operations['PutKycSettings']['responses']['200']['content']['application/json']
402
456
  type PutKycSettingsResponsePromise = Promise<{fields: PutKycSettingsResponse}>
@@ -2439,6 +2493,89 @@ export interface corePaths {
2439
2493
  };
2440
2494
  };
2441
2495
  };
2496
+ "/credit-memos": {
2497
+ /** Retrieve a list of credit memos. */
2498
+ get: operations["GetCreditMemoCollection"];
2499
+ /** Create a credit memo. */
2500
+ post: operations["PostCreditMemo"];
2501
+ };
2502
+ "/credit-memos/{id}": {
2503
+ /** Retrieve a credit memo with specified identifier string. */
2504
+ get: operations["GetCreditMemo"];
2505
+ /** Create or update a credit memo with predefined identifier string. */
2506
+ put: operations["PutCreditMemo"];
2507
+ parameters: {
2508
+ path: {
2509
+ /** The resource identifier string. */
2510
+ id: coreComponents["parameters"]["resourceId"];
2511
+ };
2512
+ };
2513
+ };
2514
+ "/credit-memos/{id}/void": {
2515
+ /** Void a credit memo with a specified identifier string. */
2516
+ post: operations["PostCreditMemoVoid"];
2517
+ parameters: {
2518
+ path: {
2519
+ /** The resource identifier string. */
2520
+ id: coreComponents["parameters"]["resourceId"];
2521
+ };
2522
+ };
2523
+ };
2524
+ "/credit-memos/{id}/timeline": {
2525
+ /** Retrieve a list of credit memo timeline messages. */
2526
+ get: operations["GetCreditMemoTimelineCollection"];
2527
+ /** Create a credit memo timeline message. */
2528
+ post: operations["PostCreditMemoTimeline"];
2529
+ parameters: {
2530
+ path: {
2531
+ /** The resource identifier string. */
2532
+ id: coreComponents["parameters"]["resourceId"];
2533
+ };
2534
+ };
2535
+ };
2536
+ "/credit-memos/{id}/timeline/{messageId}": {
2537
+ /** Retrieve a credit memo timeline message with specified identifier string. */
2538
+ get: operations["GetCreditMemoTimeline"];
2539
+ /** Delete a credit memo timeline message with predefined identifier string. */
2540
+ delete: operations["DeleteCreditMemoTimeline"];
2541
+ parameters: {
2542
+ path: {
2543
+ /** The resource identifier string. */
2544
+ id: coreComponents["parameters"]["resourceId"];
2545
+ /** The credit memo timeline message ID. */
2546
+ messageId: string;
2547
+ };
2548
+ };
2549
+ };
2550
+ "/invoices/{id}/credit-memo-allocations": {
2551
+ /** Get the precise amounts from a credit memo allocated to the invoice. */
2552
+ get: operations["GetInvoiceCreditMemoAllocationCollection"];
2553
+ parameters: {
2554
+ path: {
2555
+ /** The resource identifier string. */
2556
+ id: coreComponents["parameters"]["resourceId"];
2557
+ };
2558
+ };
2559
+ };
2560
+ "/invoices/{id}/credit-memo-allocations/{creditMemoId}": {
2561
+ /** Get the allocation from the given credit memo to the given invoice with the credit amount. */
2562
+ get: operations["GetInvoiceCreditMemoAllocation"];
2563
+ /** Apply a credit memo to an invoice. The invoice must be unpaid. The credit memo must have a non-zero unused amount (not fully applied to other invoices). */
2564
+ put: operations["PutInvoiceCreditMemoAllocation"];
2565
+ /**
2566
+ * Delete the allocation which is taken from the given credit memo to the given invoice.
2567
+ * Both invoice's and credit memo's total amounts change, possibly with their statuses.
2568
+ */
2569
+ delete: operations["DeleteInvoiceCreditMemoAllocation"];
2570
+ parameters: {
2571
+ path: {
2572
+ /** The resource identifier string. */
2573
+ id: coreComponents["parameters"]["resourceId"];
2574
+ /** Credit memo ID. */
2575
+ creditMemoId: string;
2576
+ };
2577
+ };
2578
+ };
2442
2579
  "/kyc-requests": {
2443
2580
  /** Retrieve a list of KYC requests. */
2444
2581
  get: operations["GetKycRequestCollection"];
@@ -2546,6 +2683,8 @@ export interface corePaths {
2546
2683
  };
2547
2684
  };
2548
2685
  "/kyc-settings": {
2686
+ /** Retrieve KYC settings. */
2687
+ get: operations["GetKycSettings"];
2549
2688
  /** Update KYC settings. */
2550
2689
  put: operations["PutKycSettings"];
2551
2690
  };
@@ -5167,6 +5306,78 @@ export interface coreComponents {
5167
5306
  };
5168
5307
  /** eMerchantPay 3DS Server. */
5169
5308
  eMerchantPay3dsServer: coreComponents["schemas"]["eMerchantPay3dsServers"];
5309
+ /** ThreeDSecureIO3dsServer. */
5310
+ ThreeDSecureIO3dsServer: coreComponents["schemas"]["WorldlineAtosFrankfurt3dsServers"] &
5311
+ coreComponents["schemas"]["TestProcessor3dsServers"] &
5312
+ coreComponents["schemas"]["EMS3dsServers"] & {
5313
+ /** Visa acquirer merchant ID (MID). */
5314
+ acquirerMerchantIdVisa: string;
5315
+ /** Mastercard acquirer merchant ID (MID). */
5316
+ acquirerMerchantIdMastercard: string;
5317
+ /** Merchant Name. */
5318
+ merchantName: string;
5319
+ /** Visa Acquirer BIN. */
5320
+ merchantAcquirerBinVisa: string;
5321
+ /** Mastercard Acquirer BIN. */
5322
+ merchantAcquirerBinMastercard: string;
5323
+ /** Merchant Country ISO Alpha-2 Code. */
5324
+ merchantCountry: string;
5325
+ /** Merchant URL. */
5326
+ merchantUrl: string;
5327
+ /**
5328
+ * Value determines if requests can use version 1 of 3DS.
5329
+ * In case both v1 and v2 are enabled it will prefer v2.
5330
+ * If v2 is not supported for the issuer, it will coalesce to v1.
5331
+ */
5332
+ v1?: boolean;
5333
+ /**
5334
+ * Value determines if requests will attempt version 2 of 3DS.
5335
+ * In case both v1 and v2 are enabled it will prefer v2.
5336
+ * If v2 is not supported for the issuer, it will coalesce to v1.
5337
+ */
5338
+ v2?: boolean;
5339
+ /**
5340
+ * 01 - Goods/Service Purchase
5341
+ * 03 - Check Acceptance
5342
+ * 10 - Account Funding
5343
+ * 11 - Quasi-Cash Transaction
5344
+ * 28 - Prepaid Activation and Load
5345
+ *
5346
+ * Identifies the type of transaction being authenticated.
5347
+ */
5348
+ transactionType?: "01" | "03" | "10" | "11" | "28";
5349
+ /** Set to true to decline transactions if a card is not enrolled instead of continuing without 3DS. */
5350
+ declineNotEnrolled: boolean;
5351
+ /** Use 3DS for merchant initiated transactions. */
5352
+ use3dsForMerchantInitiated: boolean;
5353
+ /**
5354
+ * 01 - Recurring transaction
5355
+ * 02 - Instalment transaction
5356
+ * 03 - Add card
5357
+ * 04 - Maintain card information
5358
+ * 05 - Account verification
5359
+ * 06 - Split/delayed shipment
5360
+ * 07 - Top-up
5361
+ * 08 - Mail Order
5362
+ * 09 - Telephone Order
5363
+ * 10 - Whitelist status check
5364
+ * 11 - Other payment
5365
+ *
5366
+ * Indicates the type of 3RI request. Values 06 - 11 are only supported in 3D2 2.2.0.
5367
+ */
5368
+ threeRIInd?:
5369
+ | "01"
5370
+ | "02"
5371
+ | "03"
5372
+ | "04"
5373
+ | "05"
5374
+ | "06"
5375
+ | "07"
5376
+ | "08"
5377
+ | "09"
5378
+ | "10"
5379
+ | "11";
5380
+ };
5170
5381
  /** The Merchant plug-in Name. */
5171
5382
  ThreeDSecureServerName:
5172
5383
  | "Payvision3dsServer"
@@ -5185,76 +5396,19 @@ export interface coreComponents {
5185
5396
  | "Piastrix3dsServer"
5186
5397
  | "NGenius3dsServer"
5187
5398
  | "Stripe3dsServer";
5188
- /** ThreeDSecureIO3dsServer. */
5189
- ThreeDSecureIO3dsServer: {
5399
+ /** WorldlineAtosFrankfurt 3DS Servers. */
5400
+ WorldlineAtosFrankfurt3dsServers: {
5401
+ name: "ThreeDSecureIO3dsServer";
5402
+ };
5403
+ /** TestProcessor3dsServers 3DS Servers. */
5404
+ TestProcessor3dsServers: {
5405
+ name: "TestSandbox3dsServer" | "ThreeDSecureIO3dsServer";
5406
+ };
5407
+ /** TestProcessor Integrated. */
5408
+ TestProcessor3dsServer: coreComponents["schemas"]["TestProcessor3dsServers"];
5409
+ /** EMS 3DS Servers. */
5410
+ EMS3dsServers: {
5190
5411
  name: "ThreeDSecureIO3dsServer";
5191
- /** Visa acquirer merchant ID (MID). */
5192
- acquirerMerchantIdVisa: string;
5193
- /** Mastercard acquirer merchant ID (MID). */
5194
- acquirerMerchantIdMastercard: string;
5195
- /** Merchant Name. */
5196
- merchantName: string;
5197
- /** Visa Acquirer BIN. */
5198
- merchantAcquirerBinVisa: string;
5199
- /** Mastercard Acquirer BIN. */
5200
- merchantAcquirerBinMastercard: string;
5201
- /** Merchant Country ISO Alpha-2 Code. */
5202
- merchantCountry: string;
5203
- /** Merchant URL. */
5204
- merchantUrl: string;
5205
- /**
5206
- * Value determines if requests can use version 1 of 3DS.
5207
- * In case both v1 and v2 are enabled it will prefer v2.
5208
- * If v2 is not supported for the issuer, it will coalesce to v1.
5209
- */
5210
- v1?: boolean;
5211
- /**
5212
- * Value determines if requests will attempt version 2 of 3DS.
5213
- * In case both v1 and v2 are enabled it will prefer v2.
5214
- * If v2 is not supported for the issuer, it will coalesce to v1.
5215
- */
5216
- v2?: boolean;
5217
- /**
5218
- * 01 - Goods/Service Purchase
5219
- * 03 - Check Acceptance
5220
- * 10 - Account Funding
5221
- * 11 - Quasi-Cash Transaction
5222
- * 28 - Prepaid Activation and Load
5223
- *
5224
- * Identifies the type of transaction being authenticated.
5225
- */
5226
- transactionType?: "01" | "03" | "10" | "11" | "28";
5227
- /** Set to true to decline transactions if a card is not enrolled instead of continuing without 3DS. */
5228
- declineNotEnrolled: boolean;
5229
- /** Use 3DS for merchant initiated transactions. */
5230
- use3dsForMerchantInitiated: boolean;
5231
- /**
5232
- * 01 - Recurring transaction
5233
- * 02 - Instalment transaction
5234
- * 03 - Add card
5235
- * 04 - Maintain card information
5236
- * 05 - Account verification
5237
- * 06 - Split/delayed shipment
5238
- * 07 - Top-up
5239
- * 08 - Mail Order
5240
- * 09 - Telephone Order
5241
- * 10 - Whitelist status check
5242
- * 11 - Other payment
5243
- *
5244
- * Indicates the type of 3RI request. Values 06 - 11 are only supported in 3D2 2.2.0.
5245
- */
5246
- threeRIInd?:
5247
- | "01"
5248
- | "02"
5249
- | "03"
5250
- | "04"
5251
- | "05"
5252
- | "06"
5253
- | "07"
5254
- | "08"
5255
- | "09"
5256
- | "10"
5257
- | "11";
5258
5412
  };
5259
5413
  /** GET 3DS Servers. */
5260
5414
  GET3dsServers: {
@@ -6000,10 +6154,6 @@ export interface coreComponents {
6000
6154
  ssl_pin: string;
6001
6155
  };
6002
6156
  };
6003
- /** EMS 3DS Servers. */
6004
- EMS3dsServers: {
6005
- name: "ThreeDSecureIO3dsServer";
6006
- };
6007
6157
  /** EMS e-Commerce (XML) API config. */
6008
6158
  EMS: coreComponents["schemas"]["GatewayAccount"] & {
6009
6159
  /** EMS settings object. */
@@ -7431,12 +7581,6 @@ export interface coreComponents {
7431
7581
  transactionDescription?: string;
7432
7582
  };
7433
7583
  };
7434
- /** TestProcessor3dsServers 3DS Servers. */
7435
- TestProcessor3dsServers: {
7436
- name: "TestSandbox3dsServer" | "ThreeDSecureIO3dsServer";
7437
- };
7438
- /** TestProcessor Integrated. */
7439
- TestProcessor3dsServer: coreComponents["schemas"]["TestProcessor3dsServers"];
7440
7584
  /** TestProcessor Gateway config. */
7441
7585
  TestProcessor: coreComponents["schemas"]["GatewayAccount"] & {
7442
7586
  threeDSecureServer?: coreComponents["schemas"]["TestProcessor3dsServers"];
@@ -7625,10 +7769,6 @@ export interface coreComponents {
7625
7769
  };
7626
7770
  threeDSecureServer?: coreComponents["schemas"]["Wirecard3dsServers"];
7627
7771
  };
7628
- /** WorldlineAtosFrankfurt 3DS Servers. */
7629
- WorldlineAtosFrankfurt3dsServers: {
7630
- name: "ThreeDSecureIO3dsServer";
7631
- };
7632
7772
  /** WorldlineAtosFrankfurt Gateway config. */
7633
7773
  WorldlineAtosFrankfurt: coreComponents["schemas"]["GatewayAccount"] & {
7634
7774
  threeDSecureServer?: coreComponents["schemas"]["WorldlineAtosFrankfurt3dsServers"];
@@ -9114,6 +9254,109 @@ export interface coreComponents {
9114
9254
  /** The links related to resource. */
9115
9255
  _links?: coreComponents["schemas"]["SelfLink"][];
9116
9256
  };
9257
+ /** Credit memo object. */
9258
+ CreditMemo: {
9259
+ /** Credit memo ID. */
9260
+ id?: coreComponents["schemas"]["ResourceId"];
9261
+ /** ID of the invoice which the credit memo is issued upon. */
9262
+ invoiceId?: coreComponents["schemas"]["ResourceId"] | null;
9263
+ /** Customer's ID. */
9264
+ customerId: coreComponents["schemas"]["ResourceId"];
9265
+ /** An auto-incrementing number based on the sequence of credit memos for any particular customer. */
9266
+ number?: number;
9267
+ items?: {
9268
+ /** Credit memo item ID. */
9269
+ id?: coreComponents["schemas"]["ResourceId"];
9270
+ /** An invoice item's ID that the credit item is referenced to. */
9271
+ invoiceItemId?: coreComponents["schemas"]["ResourceId"] | null;
9272
+ /** Credit memo item's description. */
9273
+ description?: string;
9274
+ /** Credit memo item's price. */
9275
+ unitPrice: number;
9276
+ /** Credit memo item's quantity. */
9277
+ quantity: number;
9278
+ /** Credit memo item's total price. */
9279
+ price?: number;
9280
+ /** The related product's ID. */
9281
+ productId?: coreComponents["schemas"]["ResourceId"] | null;
9282
+ /** The related plan's ID. */
9283
+ planId?: coreComponents["schemas"]["ResourceId"] | null;
9284
+ }[];
9285
+ /** Status of the credit memo. */
9286
+ status?: "issued" | "applied" | "partially-applied" | "voided";
9287
+ /** Credit memo reason code. */
9288
+ reason?:
9289
+ | "return"
9290
+ | "product-unsatisfactory"
9291
+ | "order-change"
9292
+ | "order-cancellation"
9293
+ | "chargeback"
9294
+ | "write-off"
9295
+ | "waiver"
9296
+ | "customer-credit"
9297
+ | "other";
9298
+ /** A public description (visible to customers) clarifying the purpose of the credit memo. */
9299
+ description?: string;
9300
+ currency: coreComponents["schemas"]["CurrencyCode"];
9301
+ /** The (invoice's) shipping amount to credit. */
9302
+ shippingAmount: number;
9303
+ /** The (invoice's) tax amount to credit. */
9304
+ taxAmount: number;
9305
+ /** The (invoice's) discount amount to credit. */
9306
+ discountAmount: number;
9307
+ /** The sum of all credits in the credit memo (items, shipping, tax, discount). */
9308
+ totalAmount: number;
9309
+ /** The amount of `totalAmount` which hasn't been allocated anywhere yet. */
9310
+ unusedAmount: number;
9311
+ /** Increments when the credit memo is modified. */
9312
+ revision?: number;
9313
+ /** Credit memo created time. */
9314
+ createdTime?: coreComponents["schemas"]["ServerTimestamp"];
9315
+ /** Credit memo updated time. */
9316
+ updatedTime?: coreComponents["schemas"]["ServerTimestamp"];
9317
+ /** The links related to resource. */
9318
+ _links?: (Partial<coreComponents["schemas"]["SelfLink"]> &
9319
+ Partial<coreComponents["schemas"]["CustomerLink"]> &
9320
+ Partial<coreComponents["schemas"]["InvoiceLink"]>)[];
9321
+ };
9322
+ CreditMemoTimeline: {
9323
+ /** The Timeline message identifier string. */
9324
+ id?: coreComponents["schemas"]["ResourceId"];
9325
+ /** Timeline message type. */
9326
+ type?:
9327
+ | "credit-memo-issued"
9328
+ | "credit-memo-partially-applied"
9329
+ | "credit-memo-applied";
9330
+ /** Shows who or what triggered the Timeline event. */
9331
+ triggeredBy?: "rebilly" | "app" | "direct-api";
9332
+ /** The message that describes the message details. */
9333
+ message?: string;
9334
+ extraData?: coreComponents["schemas"]["TimelineExtraData"];
9335
+ /** Timeline message time. */
9336
+ occurredTime?: coreComponents["schemas"]["ServerTimestamp"];
9337
+ /** The links related to resource. */
9338
+ _links?: coreComponents["schemas"]["SelfLink"][];
9339
+ };
9340
+ CreditMemoLink: coreComponents["schemas"]["Link"] & {
9341
+ /** The link type. */
9342
+ rel: "creditMemo";
9343
+ };
9344
+ CreditMemoAllocation: {
9345
+ /** ID of the invoice where the credit memo is allocated to. */
9346
+ invoiceId?: coreComponents["schemas"]["ResourceId"];
9347
+ /** ID of the credit memo that was allocated. */
9348
+ creditMemoId?: coreComponents["schemas"]["ResourceId"];
9349
+ /** Amount of credit from the credit memo allocated to the given invoice. */
9350
+ amount: number;
9351
+ currency?: coreComponents["schemas"]["CurrencyCode"];
9352
+ /** Credit memo allocation time. */
9353
+ createdTime?: coreComponents["schemas"]["ServerTimestamp"];
9354
+ /** Credit memo allocation update time. */
9355
+ updatedTime?: coreComponents["schemas"]["ServerTimestamp"];
9356
+ /** The links related to the resource. */
9357
+ _links?: (Partial<coreComponents["schemas"]["InvoiceLink"]> &
9358
+ Partial<coreComponents["schemas"]["CreditMemoLink"]>)[];
9359
+ };
9117
9360
  KycDocumentTypes:
9118
9361
  | "identity-proof"
9119
9362
  | "address-proof"
@@ -13618,6 +13861,352 @@ export interface operations {
13618
13861
  409: coreComponents["responses"]["Conflict"];
13619
13862
  };
13620
13863
  };
13864
+ /** Retrieve a list of credit memos. */
13865
+ GetCreditMemoCollection: {
13866
+ parameters: {
13867
+ query: {
13868
+ /**
13869
+ * The collection items filter requires a special format.
13870
+ * Use "," for multiple allowed values. Use ";" for multiple fields.
13871
+ * See the [filter guide](https://api-reference.rebilly.com/#section/Using-filter-with-collections) for more options and examples about this format.
13872
+ */
13873
+ filter?: coreComponents["parameters"]["collectionFilter"];
13874
+ /** The collection items sort field and order (prefix with "-" for descending sort). */
13875
+ sort?: coreComponents["parameters"]["collectionSort"];
13876
+ /** The collection items limit. */
13877
+ limit?: coreComponents["parameters"]["collectionLimit"];
13878
+ /** The collection items offset. */
13879
+ offset?: coreComponents["parameters"]["collectionOffset"];
13880
+ /** The partial search of the text fields. */
13881
+ q?: coreComponents["parameters"]["collectionQuery"];
13882
+ /**
13883
+ * Expand a response to get a full related object included inside of the `_embedded` path in the response.
13884
+ * It accepts a comma-separated list of objects to expand.
13885
+ * See the [expand guide](https://api-reference.rebilly.com/#section/Expand-to-include-embedded-objects) for more info.
13886
+ */
13887
+ expand?: coreComponents["parameters"]["collectionExpand"];
13888
+ };
13889
+ };
13890
+ responses: {
13891
+ /** A list of credit memos was retrieved successfully. */
13892
+ 200: {
13893
+ headers: {};
13894
+ content: {
13895
+ "application/json": coreComponents["schemas"]["CreditMemo"][];
13896
+ };
13897
+ };
13898
+ 401: coreComponents["responses"]["Unauthorized"];
13899
+ 403: coreComponents["responses"]["Forbidden"];
13900
+ };
13901
+ };
13902
+ /** Create a credit memo. */
13903
+ PostCreditMemo: {
13904
+ responses: {
13905
+ /** CreditMemo was created. */
13906
+ 201: {
13907
+ content: {
13908
+ "application/json": coreComponents["schemas"]["CreditMemo"];
13909
+ };
13910
+ };
13911
+ 401: coreComponents["responses"]["Unauthorized"];
13912
+ 403: coreComponents["responses"]["Forbidden"];
13913
+ 422: coreComponents["responses"]["ValidationError"];
13914
+ };
13915
+ requestBody: {
13916
+ content: {
13917
+ "application/json": coreComponents["schemas"]["CreditMemo"];
13918
+ };
13919
+ };
13920
+ };
13921
+ /** Retrieve a credit memo with specified identifier string. */
13922
+ GetCreditMemo: {
13923
+ parameters: {
13924
+ path: {
13925
+ /** The resource identifier string. */
13926
+ id: coreComponents["parameters"]["resourceId"];
13927
+ };
13928
+ query: {
13929
+ /**
13930
+ * Expand a response to get a full related object included inside of the `_embedded` path in the response.
13931
+ * It accepts a comma-separated list of objects to expand.
13932
+ * See the [expand guide](https://api-reference.rebilly.com/#section/Expand-to-include-embedded-objects) for more info.
13933
+ */
13934
+ expand?: coreComponents["parameters"]["collectionExpand"];
13935
+ };
13936
+ };
13937
+ responses: {
13938
+ /** Credit memo was retrieved successfully. */
13939
+ 200: {
13940
+ content: {
13941
+ "application/json": coreComponents["schemas"]["CreditMemo"];
13942
+ };
13943
+ };
13944
+ 401: coreComponents["responses"]["Unauthorized"];
13945
+ 403: coreComponents["responses"]["Forbidden"];
13946
+ 404: coreComponents["responses"]["NotFound"];
13947
+ };
13948
+ };
13949
+ /** Create or update a credit memo with predefined identifier string. */
13950
+ PutCreditMemo: {
13951
+ parameters: {
13952
+ path: {
13953
+ /** The resource identifier string. */
13954
+ id: coreComponents["parameters"]["resourceId"];
13955
+ };
13956
+ };
13957
+ responses: {
13958
+ /** CreditMemo was updated. */
13959
+ 200: {
13960
+ content: {
13961
+ "application/json": coreComponents["schemas"]["CreditMemo"];
13962
+ };
13963
+ };
13964
+ /** CreditMemo was created. */
13965
+ 201: {
13966
+ content: {
13967
+ "application/json": coreComponents["schemas"]["CreditMemo"];
13968
+ };
13969
+ };
13970
+ 401: coreComponents["responses"]["Unauthorized"];
13971
+ 403: coreComponents["responses"]["Forbidden"];
13972
+ 404: coreComponents["responses"]["NotFound"];
13973
+ 422: coreComponents["responses"]["ValidationError"];
13974
+ };
13975
+ requestBody: {
13976
+ content: {
13977
+ "application/json": coreComponents["schemas"]["CreditMemo"];
13978
+ };
13979
+ };
13980
+ };
13981
+ /** Void a credit memo with a specified identifier string. */
13982
+ PostCreditMemoVoid: {
13983
+ parameters: {
13984
+ path: {
13985
+ /** The resource identifier string. */
13986
+ id: coreComponents["parameters"]["resourceId"];
13987
+ };
13988
+ };
13989
+ responses: {
13990
+ /** Credit memo successfully voided . */
13991
+ 201: {
13992
+ content: {
13993
+ "application/json": coreComponents["schemas"]["CreditMemo"];
13994
+ };
13995
+ };
13996
+ 401: coreComponents["responses"]["Unauthorized"];
13997
+ 403: coreComponents["responses"]["Forbidden"];
13998
+ 404: coreComponents["responses"]["NotFound"];
13999
+ };
14000
+ };
14001
+ /** Retrieve a list of credit memo timeline messages. */
14002
+ GetCreditMemoTimelineCollection: {
14003
+ parameters: {
14004
+ path: {
14005
+ /** The resource identifier string. */
14006
+ id: coreComponents["parameters"]["resourceId"];
14007
+ };
14008
+ query: {
14009
+ /** The collection items limit. */
14010
+ limit?: coreComponents["parameters"]["collectionLimit"];
14011
+ /** The collection items offset. */
14012
+ offset?: coreComponents["parameters"]["collectionOffset"];
14013
+ /**
14014
+ * The collection items filter requires a special format.
14015
+ * Use "," for multiple allowed values. Use ";" for multiple fields.
14016
+ * See the [filter guide](https://api-reference.rebilly.com/#section/Using-filter-with-collections) for more options and examples about this format.
14017
+ */
14018
+ filter?: coreComponents["parameters"]["collectionFilter"];
14019
+ /** The collection items sort field and order (prefix with "-" for descending sort). */
14020
+ sort?: coreComponents["parameters"]["collectionSort"];
14021
+ /** The partial search of the text fields. */
14022
+ q?: coreComponents["parameters"]["collectionQuery"];
14023
+ };
14024
+ };
14025
+ responses: {
14026
+ /** A list of credit memo timeline messages was retrieved successfully. */
14027
+ 200: {
14028
+ headers: {};
14029
+ content: {
14030
+ "application/json": coreComponents["schemas"]["CreditMemoTimeline"][];
14031
+ };
14032
+ };
14033
+ 401: coreComponents["responses"]["Unauthorized"];
14034
+ 403: coreComponents["responses"]["Forbidden"];
14035
+ };
14036
+ };
14037
+ /** Create a credit memo timeline message. */
14038
+ PostCreditMemoTimeline: {
14039
+ parameters: {
14040
+ path: {
14041
+ /** The resource identifier string. */
14042
+ id: coreComponents["parameters"]["resourceId"];
14043
+ };
14044
+ };
14045
+ responses: {
14046
+ /** Credit memo timeline message was created. */
14047
+ 201: {
14048
+ content: {
14049
+ "application/json": coreComponents["schemas"]["CreditMemoTimeline"];
14050
+ };
14051
+ };
14052
+ 401: coreComponents["responses"]["Unauthorized"];
14053
+ 403: coreComponents["responses"]["Forbidden"];
14054
+ 422: coreComponents["responses"]["ValidationError"];
14055
+ };
14056
+ /** Credit memo timeline resource. */
14057
+ requestBody: {
14058
+ content: {
14059
+ "application/json": coreComponents["schemas"]["CreditMemoTimeline"];
14060
+ };
14061
+ };
14062
+ };
14063
+ /** Retrieve a credit memo timeline message with specified identifier string. */
14064
+ GetCreditMemoTimeline: {
14065
+ parameters: {
14066
+ path: {
14067
+ /** The resource identifier string. */
14068
+ id: coreComponents["parameters"]["resourceId"];
14069
+ /** The credit memo timeline message ID. */
14070
+ messageId: string;
14071
+ };
14072
+ };
14073
+ responses: {
14074
+ /** Credit memo timeline message was retrieved successfully. */
14075
+ 200: {
14076
+ content: {
14077
+ "application/json": coreComponents["schemas"]["CreditMemoTimeline"];
14078
+ };
14079
+ };
14080
+ 401: coreComponents["responses"]["Unauthorized"];
14081
+ 403: coreComponents["responses"]["Forbidden"];
14082
+ 404: coreComponents["responses"]["NotFound"];
14083
+ };
14084
+ };
14085
+ /** Delete a credit memo timeline message with predefined identifier string. */
14086
+ DeleteCreditMemoTimeline: {
14087
+ parameters: {
14088
+ path: {
14089
+ /** The resource identifier string. */
14090
+ id: coreComponents["parameters"]["resourceId"];
14091
+ /** The credit memo timeline message ID. */
14092
+ messageId: string;
14093
+ };
14094
+ };
14095
+ responses: {
14096
+ /** Credit memo timeline message was deleted. */
14097
+ 204: never;
14098
+ 401: coreComponents["responses"]["Unauthorized"];
14099
+ 403: coreComponents["responses"]["Forbidden"];
14100
+ 404: coreComponents["responses"]["NotFound"];
14101
+ 409: coreComponents["responses"]["Conflict"];
14102
+ };
14103
+ };
14104
+ /** Get the precise amounts from a credit memo allocated to the invoice. */
14105
+ GetInvoiceCreditMemoAllocationCollection: {
14106
+ parameters: {
14107
+ path: {
14108
+ /** The resource identifier string. */
14109
+ id: coreComponents["parameters"]["resourceId"];
14110
+ };
14111
+ query: {
14112
+ /** The collection items limit. */
14113
+ limit?: coreComponents["parameters"]["collectionLimit"];
14114
+ /** The collection items offset. */
14115
+ offset?: coreComponents["parameters"]["collectionOffset"];
14116
+ };
14117
+ };
14118
+ responses: {
14119
+ /** List of allocations was retrieved successfully. */
14120
+ 200: {
14121
+ headers: {};
14122
+ content: {
14123
+ "application/json": coreComponents["schemas"]["CreditMemoAllocation"][];
14124
+ };
14125
+ };
14126
+ 401: coreComponents["responses"]["Unauthorized"];
14127
+ 403: coreComponents["responses"]["Forbidden"];
14128
+ 404: coreComponents["responses"]["NotFound"];
14129
+ };
14130
+ };
14131
+ /** Get the allocation from the given credit memo to the given invoice with the credit amount. */
14132
+ GetInvoiceCreditMemoAllocation: {
14133
+ parameters: {
14134
+ path: {
14135
+ /** The resource identifier string. */
14136
+ id: coreComponents["parameters"]["resourceId"];
14137
+ /** Credit memo ID. */
14138
+ creditMemoId: string;
14139
+ };
14140
+ query: {
14141
+ /** The collection items limit. */
14142
+ limit?: coreComponents["parameters"]["collectionLimit"];
14143
+ /** The collection items offset. */
14144
+ offset?: coreComponents["parameters"]["collectionOffset"];
14145
+ };
14146
+ };
14147
+ responses: {
14148
+ /** The allocation was retrieved successfully. */
14149
+ 200: {
14150
+ content: {
14151
+ "application/json": coreComponents["schemas"]["CreditMemoAllocation"];
14152
+ };
14153
+ };
14154
+ 401: coreComponents["responses"]["Unauthorized"];
14155
+ 403: coreComponents["responses"]["Forbidden"];
14156
+ 404: coreComponents["responses"]["NotFound"];
14157
+ };
14158
+ };
14159
+ /** Apply a credit memo to an invoice. The invoice must be unpaid. The credit memo must have a non-zero unused amount (not fully applied to other invoices). */
14160
+ PutInvoiceCreditMemoAllocation: {
14161
+ parameters: {
14162
+ path: {
14163
+ /** The resource identifier string. */
14164
+ id: coreComponents["parameters"]["resourceId"];
14165
+ /** Credit memo ID. */
14166
+ creditMemoId: string;
14167
+ };
14168
+ };
14169
+ responses: {
14170
+ /** Credit memo was applied to invoice successfully. */
14171
+ 200: {
14172
+ content: {
14173
+ "application/json": coreComponents["schemas"]["CreditMemoAllocation"];
14174
+ };
14175
+ };
14176
+ 401: coreComponents["responses"]["Unauthorized"];
14177
+ 403: coreComponents["responses"]["Forbidden"];
14178
+ 404: coreComponents["responses"]["NotFound"];
14179
+ 422: coreComponents["responses"]["ValidationError"];
14180
+ };
14181
+ /** CreditMemoAllocation resource. */
14182
+ requestBody: {
14183
+ content: {
14184
+ "application/json": coreComponents["schemas"]["CreditMemoAllocation"];
14185
+ };
14186
+ };
14187
+ };
14188
+ /**
14189
+ * Delete the allocation which is taken from the given credit memo to the given invoice.
14190
+ * Both invoice's and credit memo's total amounts change, possibly with their statuses.
14191
+ */
14192
+ DeleteInvoiceCreditMemoAllocation: {
14193
+ parameters: {
14194
+ path: {
14195
+ /** The resource identifier string. */
14196
+ id: coreComponents["parameters"]["resourceId"];
14197
+ /** Credit memo ID. */
14198
+ creditMemoId: string;
14199
+ };
14200
+ };
14201
+ responses: {
14202
+ /** Invoice's credit memo allocation was deleted. */
14203
+ 204: never;
14204
+ 401: coreComponents["responses"]["Unauthorized"];
14205
+ 403: coreComponents["responses"]["Forbidden"];
14206
+ 404: coreComponents["responses"]["NotFound"];
14207
+ 409: coreComponents["responses"]["Conflict"];
14208
+ };
14209
+ };
13621
14210
  /** Retrieve a list of KYC requests. */
13622
14211
  GetKycRequestCollection: {
13623
14212
  parameters: {
@@ -13969,6 +14558,20 @@ export interface operations {
13969
14558
  422: coreComponents["responses"]["ValidationError"];
13970
14559
  };
13971
14560
  };
14561
+ /** Retrieve KYC settings. */
14562
+ GetKycSettings: {
14563
+ responses: {
14564
+ /** KYC settings successfully retrieved. */
14565
+ 200: {
14566
+ content: {
14567
+ "application/json": coreComponents["schemas"]["KycSettings"];
14568
+ };
14569
+ };
14570
+ 401: coreComponents["responses"]["Unauthorized"];
14571
+ 403: coreComponents["responses"]["Forbidden"];
14572
+ 404: coreComponents["responses"]["NotFound"];
14573
+ };
14574
+ };
13972
14575
  /** Update KYC settings. */
13973
14576
  PutKycSettings: {
13974
14577
  responses: {
@@ -18909,6 +19512,78 @@ export interface usersComponents {
18909
19512
  };
18910
19513
  /** eMerchantPay 3DS Server. */
18911
19514
  eMerchantPay3dsServer: usersComponents["schemas"]["eMerchantPay3dsServers"];
19515
+ /** ThreeDSecureIO3dsServer. */
19516
+ ThreeDSecureIO3dsServer: usersComponents["schemas"]["WorldlineAtosFrankfurt3dsServers"] &
19517
+ usersComponents["schemas"]["TestProcessor3dsServers"] &
19518
+ usersComponents["schemas"]["EMS3dsServers"] & {
19519
+ /** Visa acquirer merchant ID (MID). */
19520
+ acquirerMerchantIdVisa: string;
19521
+ /** Mastercard acquirer merchant ID (MID). */
19522
+ acquirerMerchantIdMastercard: string;
19523
+ /** Merchant Name. */
19524
+ merchantName: string;
19525
+ /** Visa Acquirer BIN. */
19526
+ merchantAcquirerBinVisa: string;
19527
+ /** Mastercard Acquirer BIN. */
19528
+ merchantAcquirerBinMastercard: string;
19529
+ /** Merchant Country ISO Alpha-2 Code. */
19530
+ merchantCountry: string;
19531
+ /** Merchant URL. */
19532
+ merchantUrl: string;
19533
+ /**
19534
+ * Value determines if requests can use version 1 of 3DS.
19535
+ * In case both v1 and v2 are enabled it will prefer v2.
19536
+ * If v2 is not supported for the issuer, it will coalesce to v1.
19537
+ */
19538
+ v1?: boolean;
19539
+ /**
19540
+ * Value determines if requests will attempt version 2 of 3DS.
19541
+ * In case both v1 and v2 are enabled it will prefer v2.
19542
+ * If v2 is not supported for the issuer, it will coalesce to v1.
19543
+ */
19544
+ v2?: boolean;
19545
+ /**
19546
+ * 01 - Goods/Service Purchase
19547
+ * 03 - Check Acceptance
19548
+ * 10 - Account Funding
19549
+ * 11 - Quasi-Cash Transaction
19550
+ * 28 - Prepaid Activation and Load
19551
+ *
19552
+ * Identifies the type of transaction being authenticated.
19553
+ */
19554
+ transactionType?: "01" | "03" | "10" | "11" | "28";
19555
+ /** Set to true to decline transactions if a card is not enrolled instead of continuing without 3DS. */
19556
+ declineNotEnrolled: boolean;
19557
+ /** Use 3DS for merchant initiated transactions. */
19558
+ use3dsForMerchantInitiated: boolean;
19559
+ /**
19560
+ * 01 - Recurring transaction
19561
+ * 02 - Instalment transaction
19562
+ * 03 - Add card
19563
+ * 04 - Maintain card information
19564
+ * 05 - Account verification
19565
+ * 06 - Split/delayed shipment
19566
+ * 07 - Top-up
19567
+ * 08 - Mail Order
19568
+ * 09 - Telephone Order
19569
+ * 10 - Whitelist status check
19570
+ * 11 - Other payment
19571
+ *
19572
+ * Indicates the type of 3RI request. Values 06 - 11 are only supported in 3D2 2.2.0.
19573
+ */
19574
+ threeRIInd?:
19575
+ | "01"
19576
+ | "02"
19577
+ | "03"
19578
+ | "04"
19579
+ | "05"
19580
+ | "06"
19581
+ | "07"
19582
+ | "08"
19583
+ | "09"
19584
+ | "10"
19585
+ | "11";
19586
+ };
18912
19587
  /** The Merchant plug-in Name. */
18913
19588
  ThreeDSecureServerName:
18914
19589
  | "Payvision3dsServer"
@@ -18927,76 +19602,19 @@ export interface usersComponents {
18927
19602
  | "Piastrix3dsServer"
18928
19603
  | "NGenius3dsServer"
18929
19604
  | "Stripe3dsServer";
18930
- /** ThreeDSecureIO3dsServer. */
18931
- ThreeDSecureIO3dsServer: {
19605
+ /** WorldlineAtosFrankfurt 3DS Servers. */
19606
+ WorldlineAtosFrankfurt3dsServers: {
19607
+ name: "ThreeDSecureIO3dsServer";
19608
+ };
19609
+ /** TestProcessor3dsServers 3DS Servers. */
19610
+ TestProcessor3dsServers: {
19611
+ name: "TestSandbox3dsServer" | "ThreeDSecureIO3dsServer";
19612
+ };
19613
+ /** TestProcessor Integrated. */
19614
+ TestProcessor3dsServer: usersComponents["schemas"]["TestProcessor3dsServers"];
19615
+ /** EMS 3DS Servers. */
19616
+ EMS3dsServers: {
18932
19617
  name: "ThreeDSecureIO3dsServer";
18933
- /** Visa acquirer merchant ID (MID). */
18934
- acquirerMerchantIdVisa: string;
18935
- /** Mastercard acquirer merchant ID (MID). */
18936
- acquirerMerchantIdMastercard: string;
18937
- /** Merchant Name. */
18938
- merchantName: string;
18939
- /** Visa Acquirer BIN. */
18940
- merchantAcquirerBinVisa: string;
18941
- /** Mastercard Acquirer BIN. */
18942
- merchantAcquirerBinMastercard: string;
18943
- /** Merchant Country ISO Alpha-2 Code. */
18944
- merchantCountry: string;
18945
- /** Merchant URL. */
18946
- merchantUrl: string;
18947
- /**
18948
- * Value determines if requests can use version 1 of 3DS.
18949
- * In case both v1 and v2 are enabled it will prefer v2.
18950
- * If v2 is not supported for the issuer, it will coalesce to v1.
18951
- */
18952
- v1?: boolean;
18953
- /**
18954
- * Value determines if requests will attempt version 2 of 3DS.
18955
- * In case both v1 and v2 are enabled it will prefer v2.
18956
- * If v2 is not supported for the issuer, it will coalesce to v1.
18957
- */
18958
- v2?: boolean;
18959
- /**
18960
- * 01 - Goods/Service Purchase
18961
- * 03 - Check Acceptance
18962
- * 10 - Account Funding
18963
- * 11 - Quasi-Cash Transaction
18964
- * 28 - Prepaid Activation and Load
18965
- *
18966
- * Identifies the type of transaction being authenticated.
18967
- */
18968
- transactionType?: "01" | "03" | "10" | "11" | "28";
18969
- /** Set to true to decline transactions if a card is not enrolled instead of continuing without 3DS. */
18970
- declineNotEnrolled: boolean;
18971
- /** Use 3DS for merchant initiated transactions. */
18972
- use3dsForMerchantInitiated: boolean;
18973
- /**
18974
- * 01 - Recurring transaction
18975
- * 02 - Instalment transaction
18976
- * 03 - Add card
18977
- * 04 - Maintain card information
18978
- * 05 - Account verification
18979
- * 06 - Split/delayed shipment
18980
- * 07 - Top-up
18981
- * 08 - Mail Order
18982
- * 09 - Telephone Order
18983
- * 10 - Whitelist status check
18984
- * 11 - Other payment
18985
- *
18986
- * Indicates the type of 3RI request. Values 06 - 11 are only supported in 3D2 2.2.0.
18987
- */
18988
- threeRIInd?:
18989
- | "01"
18990
- | "02"
18991
- | "03"
18992
- | "04"
18993
- | "05"
18994
- | "06"
18995
- | "07"
18996
- | "08"
18997
- | "09"
18998
- | "10"
18999
- | "11";
19000
19618
  };
19001
19619
  /** GET 3DS Servers. */
19002
19620
  GET3dsServers: {
@@ -19742,10 +20360,6 @@ export interface usersComponents {
19742
20360
  ssl_pin: string;
19743
20361
  };
19744
20362
  };
19745
- /** EMS 3DS Servers. */
19746
- EMS3dsServers: {
19747
- name: "ThreeDSecureIO3dsServer";
19748
- };
19749
20363
  /** EMS e-Commerce (XML) API config. */
19750
20364
  EMS: usersComponents["schemas"]["GatewayAccount"] & {
19751
20365
  /** EMS settings object. */
@@ -21173,12 +21787,6 @@ export interface usersComponents {
21173
21787
  transactionDescription?: string;
21174
21788
  };
21175
21789
  };
21176
- /** TestProcessor3dsServers 3DS Servers. */
21177
- TestProcessor3dsServers: {
21178
- name: "TestSandbox3dsServer" | "ThreeDSecureIO3dsServer";
21179
- };
21180
- /** TestProcessor Integrated. */
21181
- TestProcessor3dsServer: usersComponents["schemas"]["TestProcessor3dsServers"];
21182
21790
  /** TestProcessor Gateway config. */
21183
21791
  TestProcessor: usersComponents["schemas"]["GatewayAccount"] & {
21184
21792
  threeDSecureServer?: usersComponents["schemas"]["TestProcessor3dsServers"];
@@ -21367,10 +21975,6 @@ export interface usersComponents {
21367
21975
  };
21368
21976
  threeDSecureServer?: usersComponents["schemas"]["Wirecard3dsServers"];
21369
21977
  };
21370
- /** WorldlineAtosFrankfurt 3DS Servers. */
21371
- WorldlineAtosFrankfurt3dsServers: {
21372
- name: "ThreeDSecureIO3dsServer";
21373
- };
21374
21978
  /** WorldlineAtosFrankfurt Gateway config. */
21375
21979
  WorldlineAtosFrankfurt: usersComponents["schemas"]["GatewayAccount"] & {
21376
21980
  threeDSecureServer?: usersComponents["schemas"]["WorldlineAtosFrankfurt3dsServers"];
@@ -36137,6 +36741,38 @@ declare module "resources/credential-hashes-resource" {
36137
36741
  }): any;
36138
36742
  };
36139
36743
  }
36744
+ declare module "resources/credit-memos-resource" {
36745
+ export default function CreditMemosResource({ apiHandler }: {
36746
+ apiHandler: any;
36747
+ }): {
36748
+ getAll({ filter, sort, limit, offset, q, expand, }?: rebilly.GetCreditMemoCollectionRequest): rebilly.GetCreditMemoCollectionResponsePromise;
36749
+ create({ id, data }: rebilly.CreateCreditMemoRequest): rebilly.PostCreditMemoResponsePromise;
36750
+ get({ id, expand }: {
36751
+ id: any;
36752
+ expand?: any;
36753
+ }): rebilly.GetCreditMemoResponsePromise;
36754
+ update({ id, data }: {
36755
+ id: any;
36756
+ data: any;
36757
+ }): rebilly.PutCreditMemoResponsePromise;
36758
+ void({ id }: {
36759
+ id: any;
36760
+ }): any;
36761
+ getAllTimelineMessages({ id, limit, offset, filter, sort, q, }: rebilly.GetCreditMemoTimelineCollectionRequest): rebilly.GetCreditMemoTimelineCollectionResponsePromise;
36762
+ createTimelineComment({ id, data }: {
36763
+ id: any;
36764
+ data: any;
36765
+ }): any;
36766
+ getTimelineMessage({ id, messageId }: {
36767
+ id: any;
36768
+ messageId: any;
36769
+ }): rebilly.GetCreditMemoTimelineResponsePromise;
36770
+ deleteTimelineMessage({ id, messageId }: {
36771
+ id: any;
36772
+ messageId: any;
36773
+ }): any;
36774
+ };
36775
+ }
36140
36776
  declare module "resources/custom-domains-resource" {
36141
36777
  export default function CustomDomainsResource({ apiHandler }: {
36142
36778
  apiHandler: any;
@@ -36759,6 +37395,22 @@ declare module "resources/invoices-resource" {
36759
37395
  id: any;
36760
37396
  messageId: any;
36761
37397
  }): any;
37398
+ getAllCreditMemoAllocations({ id, limit, offset }: rebilly.GetInvoiceCreditMemoAllocationCollectionRequest): rebilly.GetInvoiceCreditMemoAllocationCollectionResponsePromise;
37399
+ getCreditMemoAllocation({ id, creditMemoId, limit, offset }: {
37400
+ id: any;
37401
+ creditMemoId: any;
37402
+ limit?: any;
37403
+ offset?: any;
37404
+ }): rebilly.GetInvoiceCreditMemoAllocationResponsePromise;
37405
+ applyCreditMemo({ id, creditMemoId, data }: {
37406
+ id: any;
37407
+ creditMemoId: any;
37408
+ data: any;
37409
+ }): rebilly.PutInvoiceCreditMemoAllocationResponsePromise;
37410
+ deleteCreditMemoAllocation({ id, creditMemoId }: {
37411
+ id: any;
37412
+ creditMemoId: any;
37413
+ }): any;
36762
37414
  downloadCSV({ limit, offset, sort, expand, filter, q, }?: {
36763
37415
  limit?: any;
36764
37416
  offset?: any;
@@ -37763,6 +38415,41 @@ declare module "resources/api-instance" {
37763
38415
  data: any;
37764
38416
  }): any;
37765
38417
  };
38418
+ creditMemos: {
38419
+ getAll({ filter, sort, limit, offset, q, expand, }?: {
38420
+ filter?: string;
38421
+ sort?: string[];
38422
+ limit?: number;
38423
+ offset?: number;
38424
+ q?: string;
38425
+ expand?: string;
38426
+ }): rebilly.GetCreditMemoCollectionResponsePromise;
38427
+ create({ id, data }: rebilly.CreateCreditMemoRequest): rebilly.PostCreditMemoResponsePromise;
38428
+ get({ id, expand }: {
38429
+ id: any;
38430
+ expand?: any;
38431
+ }): rebilly.GetCreditMemoResponsePromise;
38432
+ update({ id, data }: {
38433
+ id: any;
38434
+ data: any;
38435
+ }): rebilly.PutCreditMemoResponsePromise;
38436
+ void({ id }: {
38437
+ id: any;
38438
+ }): any;
38439
+ getAllTimelineMessages({ id, limit, offset, filter, sort, q, }: rebilly.GetCreditMemoTimelineCollectionRequest): rebilly.GetCreditMemoTimelineCollectionResponsePromise;
38440
+ createTimelineComment({ id, data }: {
38441
+ id: any;
38442
+ data: any;
38443
+ }): any;
38444
+ getTimelineMessage({ id, messageId }: {
38445
+ id: any;
38446
+ messageId: any;
38447
+ }): rebilly.GetCreditMemoTimelineResponsePromise;
38448
+ deleteTimelineMessage({ id, messageId }: {
38449
+ id: any;
38450
+ messageId: any;
38451
+ }): any;
38452
+ };
37766
38453
  customDomains: {
37767
38454
  getAll({ limit, offset, sort, filter, q, }?: {
37768
38455
  limit?: number;
@@ -38401,6 +39088,22 @@ declare module "resources/api-instance" {
38401
39088
  id: any;
38402
39089
  messageId: any;
38403
39090
  }): any;
39091
+ getAllCreditMemoAllocations({ id, limit, offset }: rebilly.GetInvoiceCreditMemoAllocationCollectionRequest): rebilly.GetInvoiceCreditMemoAllocationCollectionResponsePromise;
39092
+ getCreditMemoAllocation({ id, creditMemoId, limit, offset }: {
39093
+ id: any;
39094
+ creditMemoId: any;
39095
+ limit?: any;
39096
+ offset?: any;
39097
+ }): rebilly.GetInvoiceCreditMemoAllocationResponsePromise;
39098
+ applyCreditMemo({ id, creditMemoId, data }: {
39099
+ id: any;
39100
+ creditMemoId: any;
39101
+ data: any;
39102
+ }): rebilly.PutInvoiceCreditMemoAllocationResponsePromise;
39103
+ deleteCreditMemoAllocation({ id, creditMemoId }: {
39104
+ id: any;
39105
+ creditMemoId: any;
39106
+ }): any;
38404
39107
  downloadCSV({ limit, offset, sort, expand, filter, q, }?: {
38405
39108
  limit?: any;
38406
39109
  offset?: any;