rebilly-js-sdk 47.17.1 → 47.18.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.
@@ -383,6 +383,59 @@ declare module rebilly {
383
383
  type DeleteCreditMemoTimelineResponse = operations['DeleteCreditMemoTimeline']['responses']['204']
384
384
  type DeleteCreditMemoTimelineResponsePromise = Promise<{fields: DeleteCreditMemoTimelineResponse}>
385
385
 
386
+ type GetJournalAccountCollectionRequest = operations['GetJournalAccountCollection']['parameters']["query"] & (operations['GetJournalAccountCollection']['parameters'] extends {path: {}} ? operations['GetJournalAccountCollection']['parameters']["path"] : {})
387
+
388
+ type GetJournalAccountCollectionResponse = operations['GetJournalAccountCollection']['responses']['200']['content']['application/json'][0]
389
+ type GetJournalAccountCollectionResponsePromise = Promise<{ items: {fields: GetJournalAccountCollectionResponse}[], getJSON: object, total?: number, offset?: number, limit?: number }>
390
+ type PostJournalAccountRequest = operations['PostJournalAccount']['requestBody']['content']['application/json']
391
+ type CreateJournalAccountRequest = { id: String, data: PostJournalAccountRequest, expand?: String }
392
+ type PostJournalAccountResponse = operations['PostJournalAccount']['responses']['201']['content']['application/json']
393
+ type PostJournalAccountResponsePromise = Promise<{fields: PostJournalAccountResponse}>
394
+
395
+ type GetJournalAccountRequest = { id : String }
396
+
397
+ type GetJournalAccountResponse = operations['GetJournalAccount']['responses']['200']['content']['application/json']
398
+ type GetJournalAccountResponsePromise = Promise<{fields: GetJournalAccountResponse}>
399
+ type PutJournalAccountRequest = operations['PutJournalAccount']['requestBody']['content']['application/json']
400
+ type PutJournalAccountResponse = operations['PutJournalAccount']['responses']['201']['content']['application/json']
401
+ type PutJournalAccountResponsePromise = Promise<{fields: PutJournalAccountResponse}>
402
+
403
+ type GetJournalEntryCollectionRequest = operations['GetJournalEntryCollection']['parameters']["query"] & (operations['GetJournalEntryCollection']['parameters'] extends {path: {}} ? operations['GetJournalEntryCollection']['parameters']["path"] : {})
404
+
405
+ type GetJournalEntryCollectionResponse = operations['GetJournalEntryCollection']['responses']['200']['content']['application/json'][0]
406
+ type GetJournalEntryCollectionResponsePromise = Promise<{ items: {fields: GetJournalEntryCollectionResponse}[], getJSON: object, total?: number, offset?: number, limit?: number }>
407
+ type PostJournalEntryRequest = operations['PostJournalEntry']['requestBody']['content']['application/json']
408
+ type CreateJournalEntryRequest = { id: String, data: PostJournalEntryRequest, expand?: String }
409
+ type PostJournalEntryResponse = operations['PostJournalEntry']['responses']['201']['content']['application/json']
410
+ type PostJournalEntryResponsePromise = Promise<{fields: PostJournalEntryResponse}>
411
+
412
+ type GetJournalEntryRequest = { id : String }
413
+
414
+ type GetJournalEntryResponse = operations['GetJournalEntry']['responses']['200']['content']['application/json']
415
+ type GetJournalEntryResponsePromise = Promise<{fields: GetJournalEntryResponse}>
416
+ type PutJournalEntryRequest = operations['PutJournalEntry']['requestBody']['content']['application/json']
417
+ type PutJournalEntryResponse = operations['PutJournalEntry']['responses']['201']['content']['application/json']
418
+ type PutJournalEntryResponsePromise = Promise<{fields: PutJournalEntryResponse}>
419
+
420
+ type GetJournalRecordCollectionRequest = operations['GetJournalRecordCollection']['parameters']["query"] & (operations['GetJournalRecordCollection']['parameters'] extends {path: {}} ? operations['GetJournalRecordCollection']['parameters']["path"] : {}) & { id : String }
421
+
422
+ type GetJournalRecordCollectionResponse = operations['GetJournalRecordCollection']['responses']['200']['content']['application/json'][0]
423
+ type GetJournalRecordCollectionResponsePromise = Promise<{ items: {fields: GetJournalRecordCollectionResponse}[], getJSON: object, total?: number, offset?: number, limit?: number }>
424
+ type PostJournalRecordRequest = operations['PostJournalRecord']['requestBody']['content']['application/json']
425
+ type CreateJournalRecordRequest = { id: String, data: PostJournalRecordRequest, expand?: String }
426
+ type PostJournalRecordResponse = operations['PostJournalRecord']['responses']['201']['content']['application/json']
427
+ type PostJournalRecordResponsePromise = Promise<{fields: PostJournalRecordResponse}>
428
+
429
+ type GetJournalRecordRequest = { id : String,journalRecordId : String }
430
+
431
+ type GetJournalRecordResponse = operations['GetJournalRecord']['responses']['200']['content']['application/json']
432
+ type GetJournalRecordResponsePromise = Promise<{fields: GetJournalRecordResponse}>
433
+ type PutJournalRecordRequest = operations['PutJournalRecord']['requestBody']['content']['application/json']
434
+ type PutJournalRecordResponse = operations['PutJournalRecord']['responses']['201']['content']['application/json']
435
+ type PutJournalRecordResponsePromise = Promise<{fields: PutJournalRecordResponse}>
436
+ type DeleteJournalRecordResponse = operations['DeleteJournalRecord']['responses']['204']
437
+ type DeleteJournalRecordResponsePromise = Promise<{fields: DeleteJournalRecordResponse}>
438
+
386
439
  type GetKycRequestCollectionRequest = operations['GetKycRequestCollection']['parameters']["query"] & (operations['GetKycRequestCollection']['parameters'] extends {path: {}} ? operations['GetKycRequestCollection']['parameters']["path"] : {})
387
440
 
388
441
  type GetKycRequestCollectionResponse = operations['GetKycRequestCollection']['responses']['200']['content']['application/json'][0]
@@ -2761,6 +2814,70 @@ export interface corePaths {
2761
2814
  };
2762
2815
  };
2763
2816
  };
2817
+ "/journal-accounts": {
2818
+ /** Retrieves a list of journal accounts. */
2819
+ get: operations["GetJournalAccountCollection"];
2820
+ /** Creates a journal account. */
2821
+ post: operations["PostJournalAccount"];
2822
+ };
2823
+ "/journal-accounts/{id}": {
2824
+ /** Retrieves a journal account with a specified ID. */
2825
+ get: operations["GetJournalAccount"];
2826
+ /** Creates or updates (upsert) a journal account. */
2827
+ put: operations["PutJournalAccount"];
2828
+ parameters: {
2829
+ path: {
2830
+ /** Resource identifier string. */
2831
+ id: coreComponents["parameters"]["resourceId"];
2832
+ };
2833
+ };
2834
+ };
2835
+ "/journal-entries": {
2836
+ /** Retrieves a list of journal entries. */
2837
+ get: operations["GetJournalEntryCollection"];
2838
+ /** Creates a journal entry. */
2839
+ post: operations["PostJournalEntry"];
2840
+ };
2841
+ "/journal-entries/{id}": {
2842
+ /** Retrieves a journal entry with a specified ID. */
2843
+ get: operations["GetJournalEntry"];
2844
+ /** Creates or updates (upsert) a journal entry. */
2845
+ put: operations["PutJournalEntry"];
2846
+ parameters: {
2847
+ path: {
2848
+ /** Resource identifier string. */
2849
+ id: coreComponents["parameters"]["resourceId"];
2850
+ };
2851
+ };
2852
+ };
2853
+ "/journal-entries/{id}/records": {
2854
+ /** Retrieves a list of journal records. */
2855
+ get: operations["GetJournalRecordCollection"];
2856
+ /** Creates a journal record. */
2857
+ post: operations["PostJournalRecord"];
2858
+ parameters: {
2859
+ path: {
2860
+ /** Resource identifier string. */
2861
+ id: coreComponents["parameters"]["resourceId"];
2862
+ };
2863
+ };
2864
+ };
2865
+ "/journal-entries/{id}/records/{journalRecordId}": {
2866
+ /** Retrieves a journal record with a specified ID. */
2867
+ get: operations["GetJournalRecord"];
2868
+ /** Creates or updates (upsert) a journal record. */
2869
+ put: operations["PutJournalRecord"];
2870
+ /** Deletes a journal record. */
2871
+ delete: operations["DeleteJournalRecord"];
2872
+ parameters: {
2873
+ path: {
2874
+ /** Resource identifier string. */
2875
+ id: coreComponents["parameters"]["resourceId"];
2876
+ /** ID of the journal record. */
2877
+ journalRecordId: coreComponents["parameters"]["journalRecordId"];
2878
+ };
2879
+ };
2880
+ };
2764
2881
  "/kyc-requests": {
2765
2882
  /** Retrieves a list of KYC requests. */
2766
2883
  get: operations["GetKycRequestCollection"];
@@ -4444,6 +4561,7 @@ export interface coreComponents {
4444
4561
  | "iWallet"
4445
4562
  | "Jeton"
4446
4563
  | "jpay"
4564
+ | "KakaoPay"
4447
4565
  | "Khelocard"
4448
4566
  | "Klarna"
4449
4567
  | "KNOT"
@@ -4477,6 +4595,7 @@ export interface coreComponents {
4477
4595
  | "Pagsmile-lottery"
4478
4596
  | "Pagsmile-deposit-express"
4479
4597
  | "PayCash"
4598
+ | "Payco"
4480
4599
  | "Payeer"
4481
4600
  | "PaymentAsia-crypto"
4482
4601
  | "Paysafecard"
@@ -4502,6 +4621,7 @@ export interface coreComponents {
4502
4621
  | "rapyd-checkout"
4503
4622
  | "Resurs"
4504
4623
  | "SafetyPay"
4624
+ | "Samsung Pay"
4505
4625
  | "SEPA"
4506
4626
  | "Siirto"
4507
4627
  | "Skrill"
@@ -9229,6 +9349,12 @@ export interface coreComponents {
9229
9349
  taxCategoryId?: string;
9230
9350
  /** Accounting code of the product. */
9231
9351
  accountingCode?: string;
9352
+ recognition?: {
9353
+ /** ID of the debit journal account. */
9354
+ debitAccountId?: string | null;
9355
+ /** ID of the credit journal account. */
9356
+ creditAccountId?: string | null;
9357
+ } | null;
9232
9358
  /** Related resource links. */
9233
9359
  _links?: coreComponents["schemas"]["SelfLink"][];
9234
9360
  };
@@ -10442,6 +10568,76 @@ export interface coreComponents {
10442
10568
  /** Related resource links. */
10443
10569
  _links?: coreComponents["schemas"]["SelfLink"][];
10444
10570
  };
10571
+ JournalAccount: {
10572
+ /** ID of the journal account. */
10573
+ id?: coreComponents["schemas"]["ResourceId"];
10574
+ /** Name of the journal account. */
10575
+ name: string;
10576
+ description?: string | null;
10577
+ /** Date and time when the journal record is created. */
10578
+ createdTime?: coreComponents["schemas"]["ServerTimestamp"];
10579
+ updatedTime?: coreComponents["schemas"]["UpdatedTime"];
10580
+ };
10581
+ JournalEntry: {
10582
+ /** ID of the journal entry. */
10583
+ id?: coreComponents["schemas"]["ResourceId"];
10584
+ period: {
10585
+ startDate?: string;
10586
+ endDate?: string;
10587
+ };
10588
+ /** Currency of the journal record revenue. */
10589
+ currency: coreComponents["schemas"]["CurrencyCode"];
10590
+ description?: string;
10591
+ createdTime?: coreComponents["schemas"]["CreatedTime"];
10592
+ updatedTime?: coreComponents["schemas"]["UpdatedTime"];
10593
+ };
10594
+ JournalRecord: {
10595
+ id?: coreComponents["schemas"]["ResourceId"];
10596
+ /** ID of the journal entry. */
10597
+ journalEntryId: string;
10598
+ /** ID of the customer. */
10599
+ customerId: string;
10600
+ /** ID of the invoice. */
10601
+ invoiceId: string;
10602
+ /** ID of the invoice item. */
10603
+ invoiceItemId: string;
10604
+ type: "automated" | "manual";
10605
+ /**
10606
+ * Amount of revenue estimated to be recognized at the schedule date.
10607
+ * This value is ignored when updating a journal record with a `type` of `automated`.
10608
+ */
10609
+ estimatedAmount?: number | null;
10610
+ /** Amount of revenue recognized at the journal period end. */
10611
+ recognizedAmount?: number | null;
10612
+ /** ID of the debit journal account. */
10613
+ debitAccountId: string | null;
10614
+ /** ID of the credit journal account. */
10615
+ creditAccountId: string | null;
10616
+ createdTime?: coreComponents["schemas"]["CreatedTime"];
10617
+ updatedTime?: coreComponents["schemas"]["UpdatedTime"];
10618
+ /** Embedded objects that are requested by the `expand` query parameter. */
10619
+ _embedded?: {
10620
+ customer?: coreComponents["schemas"]["Customer"];
10621
+ invoice?: coreComponents["schemas"]["Invoice"];
10622
+ invoiceItem?: coreComponents["schemas"]["InvoiceItem"];
10623
+ debitAccount?: coreComponents["schemas"]["JournalAccount"];
10624
+ creditAccount?: coreComponents["schemas"]["JournalAccount"];
10625
+ };
10626
+ /** Related links. */
10627
+ _links?: {
10628
+ /** Link URL. */
10629
+ href?: string;
10630
+ /** Type of link. */
10631
+ rel?:
10632
+ | "self"
10633
+ | "customer"
10634
+ | "invoice"
10635
+ | "invoiceItem"
10636
+ | "journalEntry"
10637
+ | "creditAccount"
10638
+ | "debitAccount";
10639
+ }[];
10640
+ };
10445
10641
  KycDocumentTypes:
10446
10642
  | "identity-proof"
10447
10643
  | "address-proof"
@@ -11179,6 +11375,7 @@ export interface coreComponents {
11179
11375
  | "iWallet"
11180
11376
  | "Jeton"
11181
11377
  | "jpay"
11378
+ | "KakaoPay"
11182
11379
  | "Khelocard"
11183
11380
  | "Klarna"
11184
11381
  | "KNOT"
@@ -11208,6 +11405,7 @@ export interface coreComponents {
11208
11405
  | "Pagsmile-deposit-express"
11209
11406
  | "Pagsmile-lottery"
11210
11407
  | "PayCash"
11408
+ | "Payco"
11211
11409
  | "Payeer"
11212
11410
  | "PaymentAsia-crypto"
11213
11411
  | "Paymero"
@@ -11231,6 +11429,7 @@ export interface coreComponents {
11231
11429
  | "rapyd-checkout"
11232
11430
  | "Resurs"
11233
11431
  | "SafetyPay"
11432
+ | "Samsung Pay"
11234
11433
  | "SEPA"
11235
11434
  | "Skrill"
11236
11435
  | "Skrill Rapid Transfer"
@@ -12505,7 +12704,7 @@ export interface coreComponents {
12505
12704
  PatchTransactionRequest: {
12506
12705
  customFields?: coreComponents["schemas"]["ResourceCustomFields"];
12507
12706
  };
12508
- PayoutRequest: coreComponents["schemas"]["CommonTransactionRequest"] & {
12707
+ CreditTransactionRequest: coreComponents["schemas"]["CommonTransactionRequest"] & {
12509
12708
  /** ID of the payout request for which the transaction is fully allocated. */
12510
12709
  payoutRequestId?: string;
12511
12710
  };
@@ -12773,7 +12972,7 @@ export interface coreComponents {
12773
12972
  createdTime?: coreComponents["schemas"]["CreatedTime"];
12774
12973
  updatedTime?: coreComponents["schemas"]["UpdatedTime"];
12775
12974
  };
12776
- "PayoutRequest-2": {
12975
+ PayoutRequest: {
12777
12976
  id?: coreComponents["schemas"]["ResourceId"];
12778
12977
  websiteId: coreComponents["schemas"]["WebsiteId"];
12779
12978
  customerId?: coreComponents["schemas"]["CustomerId"];
@@ -13082,6 +13281,8 @@ export interface coreComponents {
13082
13281
  imageSize: string;
13083
13282
  /** Type of response media. */
13084
13283
  mediaTypeJsonPdf: "application/json" | "application/pdf";
13284
+ /** ID of the journal record. */
13285
+ journalRecordId: string;
13085
13286
  /**
13086
13287
  * Expand a response to get a full related object included inside of the `_embedded` path in the response.
13087
13288
  *
@@ -13226,9 +13427,9 @@ export interface coreComponents {
13226
13427
  };
13227
13428
  };
13228
13429
  /** Transaction resource. */
13229
- PayoutRequest: {
13430
+ CreditTransactionRequest: {
13230
13431
  content: {
13231
- "application/json": coreComponents["schemas"]["PayoutRequest"];
13432
+ "application/json": coreComponents["schemas"]["CreditTransactionRequest"];
13232
13433
  };
13233
13434
  };
13234
13435
  /** Customer webhook request body resource. */
@@ -16177,6 +16378,377 @@ export interface operations {
16177
16378
  409: coreComponents["responses"]["Conflict"];
16178
16379
  };
16179
16380
  };
16381
+ /** Retrieves a list of journal accounts. */
16382
+ GetJournalAccountCollection: {
16383
+ parameters: {
16384
+ query: {
16385
+ /** Limits the number of collection items to be returned. */
16386
+ limit?: coreComponents["parameters"]["collectionLimit"];
16387
+ /** Specifies the starting point within the collection of items to be returned. */
16388
+ offset?: coreComponents["parameters"]["collectionOffset"];
16389
+ /**
16390
+ * Filters the collection items. This field requires
16391
+ * a special format. Use `,` for multiple allowed values. Use `;` for multiple fields.
16392
+ *
16393
+ * For more information, see
16394
+ * [Using filter with collections](https://api-reference.rebilly.com/#section/Using-filter-with-collections).
16395
+ */
16396
+ filter?: coreComponents["parameters"]["collectionFilter"];
16397
+ /**
16398
+ * Sorts and orders the collection of items. To sort in descending
16399
+ * order, prefix with `-`.
16400
+ */
16401
+ sort?: coreComponents["parameters"]["collectionSort"];
16402
+ };
16403
+ };
16404
+ responses: {
16405
+ /** List of journal accounts retrieved. */
16406
+ 200: {
16407
+ headers: {};
16408
+ content: {
16409
+ "application/json": coreComponents["schemas"]["JournalAccount"][];
16410
+ };
16411
+ };
16412
+ 401: coreComponents["responses"]["Unauthorized"];
16413
+ 403: coreComponents["responses"]["Forbidden"];
16414
+ };
16415
+ };
16416
+ /** Creates a journal account. */
16417
+ PostJournalAccount: {
16418
+ responses: {
16419
+ /** Journal account created. */
16420
+ 201: {
16421
+ headers: {};
16422
+ content: {
16423
+ "application/json": coreComponents["schemas"]["JournalAccount"];
16424
+ };
16425
+ };
16426
+ 401: coreComponents["responses"]["Unauthorized"];
16427
+ 403: coreComponents["responses"]["Forbidden"];
16428
+ 422: coreComponents["responses"]["ValidationError"];
16429
+ };
16430
+ /** Journal account resource. */
16431
+ requestBody: {
16432
+ content: {
16433
+ "application/json": coreComponents["schemas"]["JournalAccount"];
16434
+ };
16435
+ };
16436
+ };
16437
+ /** Retrieves a journal account with a specified ID. */
16438
+ GetJournalAccount: {
16439
+ parameters: {
16440
+ path: {
16441
+ /** Resource identifier string. */
16442
+ id: coreComponents["parameters"]["resourceId"];
16443
+ };
16444
+ };
16445
+ responses: {
16446
+ /** Journal account retrieved. */
16447
+ 200: {
16448
+ content: {
16449
+ "application/json": coreComponents["schemas"]["JournalAccount"];
16450
+ };
16451
+ };
16452
+ 401: coreComponents["responses"]["Unauthorized"];
16453
+ 403: coreComponents["responses"]["Forbidden"];
16454
+ 404: coreComponents["responses"]["NotFound"];
16455
+ };
16456
+ };
16457
+ /** Creates or updates (upsert) a journal account. */
16458
+ PutJournalAccount: {
16459
+ parameters: {
16460
+ path: {
16461
+ /** Resource identifier string. */
16462
+ id: coreComponents["parameters"]["resourceId"];
16463
+ };
16464
+ };
16465
+ responses: {
16466
+ /** Journal account updated. */
16467
+ 200: {
16468
+ content: {
16469
+ "application/json": coreComponents["schemas"]["JournalAccount"];
16470
+ };
16471
+ };
16472
+ /** Journal account created. */
16473
+ 201: {
16474
+ headers: {};
16475
+ content: {
16476
+ "application/json": coreComponents["schemas"]["JournalAccount"];
16477
+ };
16478
+ };
16479
+ 401: coreComponents["responses"]["Unauthorized"];
16480
+ 403: coreComponents["responses"]["Forbidden"];
16481
+ 404: coreComponents["responses"]["NotFound"];
16482
+ 422: coreComponents["responses"]["ValidationError"];
16483
+ };
16484
+ /** Journal account resource. */
16485
+ requestBody: {
16486
+ content: {
16487
+ "application/json": coreComponents["schemas"]["JournalAccount"];
16488
+ };
16489
+ };
16490
+ };
16491
+ /** Retrieves a list of journal entries. */
16492
+ GetJournalEntryCollection: {
16493
+ parameters: {
16494
+ query: {
16495
+ /** Limits the number of collection items to be returned. */
16496
+ limit?: coreComponents["parameters"]["collectionLimit"];
16497
+ /** Specifies the starting point within the collection of items to be returned. */
16498
+ offset?: coreComponents["parameters"]["collectionOffset"];
16499
+ /**
16500
+ * Filters the collection items. This field requires
16501
+ * a special format. Use `,` for multiple allowed values. Use `;` for multiple fields.
16502
+ *
16503
+ * For more information, see
16504
+ * [Using filter with collections](https://api-reference.rebilly.com/#section/Using-filter-with-collections).
16505
+ */
16506
+ filter?: coreComponents["parameters"]["collectionFilter"];
16507
+ /**
16508
+ * Sorts and orders the collection of items. To sort in descending
16509
+ * order, prefix with `-`.
16510
+ */
16511
+ sort?: coreComponents["parameters"]["collectionSort"];
16512
+ };
16513
+ };
16514
+ responses: {
16515
+ /** List of journal entries retrieved. */
16516
+ 200: {
16517
+ headers: {};
16518
+ content: {
16519
+ "application/json": coreComponents["schemas"]["JournalEntry"][];
16520
+ };
16521
+ };
16522
+ 401: coreComponents["responses"]["Unauthorized"];
16523
+ 403: coreComponents["responses"]["Forbidden"];
16524
+ };
16525
+ };
16526
+ /** Creates a journal entry. */
16527
+ PostJournalEntry: {
16528
+ responses: {
16529
+ /** Journal entry created. */
16530
+ 201: {
16531
+ headers: {};
16532
+ content: {
16533
+ "application/json": coreComponents["schemas"]["JournalEntry"];
16534
+ };
16535
+ };
16536
+ 401: coreComponents["responses"]["Unauthorized"];
16537
+ 403: coreComponents["responses"]["Forbidden"];
16538
+ 422: coreComponents["responses"]["ValidationError"];
16539
+ };
16540
+ /** Journal entry resource. */
16541
+ requestBody: {
16542
+ content: {
16543
+ "application/json": coreComponents["schemas"]["JournalEntry"];
16544
+ };
16545
+ };
16546
+ };
16547
+ /** Retrieves a journal entry with a specified ID. */
16548
+ GetJournalEntry: {
16549
+ parameters: {
16550
+ path: {
16551
+ /** Resource identifier string. */
16552
+ id: coreComponents["parameters"]["resourceId"];
16553
+ };
16554
+ };
16555
+ responses: {
16556
+ /** Journal entry retrieved. */
16557
+ 200: {
16558
+ content: {
16559
+ "application/json": coreComponents["schemas"]["JournalEntry"];
16560
+ };
16561
+ };
16562
+ 401: coreComponents["responses"]["Unauthorized"];
16563
+ 403: coreComponents["responses"]["Forbidden"];
16564
+ 404: coreComponents["responses"]["NotFound"];
16565
+ };
16566
+ };
16567
+ /** Creates or updates (upsert) a journal entry. */
16568
+ PutJournalEntry: {
16569
+ parameters: {
16570
+ path: {
16571
+ /** Resource identifier string. */
16572
+ id: coreComponents["parameters"]["resourceId"];
16573
+ };
16574
+ };
16575
+ responses: {
16576
+ /** Journal entry updated. */
16577
+ 200: {
16578
+ content: {
16579
+ "application/json": coreComponents["schemas"]["JournalEntry"];
16580
+ };
16581
+ };
16582
+ /** Journal entry created. */
16583
+ 201: {
16584
+ headers: {};
16585
+ content: {
16586
+ "application/json": coreComponents["schemas"]["JournalEntry"];
16587
+ };
16588
+ };
16589
+ 401: coreComponents["responses"]["Unauthorized"];
16590
+ 403: coreComponents["responses"]["Forbidden"];
16591
+ 404: coreComponents["responses"]["NotFound"];
16592
+ 422: coreComponents["responses"]["ValidationError"];
16593
+ };
16594
+ /** Journal entry resource. */
16595
+ requestBody: {
16596
+ content: {
16597
+ "application/json": coreComponents["schemas"]["JournalEntry"];
16598
+ };
16599
+ };
16600
+ };
16601
+ /** Retrieves a list of journal records. */
16602
+ GetJournalRecordCollection: {
16603
+ parameters: {
16604
+ path: {
16605
+ /** Resource identifier string. */
16606
+ id: coreComponents["parameters"]["resourceId"];
16607
+ };
16608
+ query: {
16609
+ /** Limits the number of collection items to be returned. */
16610
+ limit?: coreComponents["parameters"]["collectionLimit"];
16611
+ /** Specifies the starting point within the collection of items to be returned. */
16612
+ offset?: coreComponents["parameters"]["collectionOffset"];
16613
+ /**
16614
+ * Filters the collection items. This field requires
16615
+ * a special format. Use `,` for multiple allowed values. Use `;` for multiple fields.
16616
+ *
16617
+ * For more information, see
16618
+ * [Using filter with collections](https://api-reference.rebilly.com/#section/Using-filter-with-collections).
16619
+ */
16620
+ filter?: coreComponents["parameters"]["collectionFilter"];
16621
+ /**
16622
+ * Sorts and orders the collection of items. To sort in descending
16623
+ * order, prefix with `-`.
16624
+ */
16625
+ sort?: coreComponents["parameters"]["collectionSort"];
16626
+ /**
16627
+ * Expands a request to include embedded objects within the `_embedded`
16628
+ * property of the response. This field accepts a comma-separated list of objects.
16629
+ *
16630
+ * For more information, see
16631
+ * [Expand to include embedded objects](https://api-reference.rebilly.com/#section/Expand-to-include-embedded-objects).
16632
+ */
16633
+ expand?: coreComponents["parameters"]["collectionExpand"];
16634
+ };
16635
+ };
16636
+ responses: {
16637
+ /** List of journal records retrieved. */
16638
+ 200: {
16639
+ headers: {};
16640
+ content: {
16641
+ "application/json": coreComponents["schemas"]["JournalRecord"][];
16642
+ };
16643
+ };
16644
+ 401: coreComponents["responses"]["Unauthorized"];
16645
+ 403: coreComponents["responses"]["Forbidden"];
16646
+ };
16647
+ };
16648
+ /** Creates a journal record. */
16649
+ PostJournalRecord: {
16650
+ parameters: {
16651
+ path: {
16652
+ /** Resource identifier string. */
16653
+ id: coreComponents["parameters"]["resourceId"];
16654
+ };
16655
+ };
16656
+ responses: {
16657
+ /** Journal record created. */
16658
+ 201: {
16659
+ headers: {};
16660
+ content: {
16661
+ "application/json": coreComponents["schemas"]["JournalRecord"];
16662
+ };
16663
+ };
16664
+ 401: coreComponents["responses"]["Unauthorized"];
16665
+ 403: coreComponents["responses"]["Forbidden"];
16666
+ 422: coreComponents["responses"]["ValidationError"];
16667
+ };
16668
+ /** Journal record resource. */
16669
+ requestBody: {
16670
+ content: {
16671
+ "application/json": coreComponents["schemas"]["JournalRecord"];
16672
+ };
16673
+ };
16674
+ };
16675
+ /** Retrieves a journal record with a specified ID. */
16676
+ GetJournalRecord: {
16677
+ parameters: {
16678
+ path: {
16679
+ /** Resource identifier string. */
16680
+ id: coreComponents["parameters"]["resourceId"];
16681
+ /** ID of the journal record. */
16682
+ journalRecordId: coreComponents["parameters"]["journalRecordId"];
16683
+ };
16684
+ };
16685
+ responses: {
16686
+ /** Journal record retrieved. */
16687
+ 200: {
16688
+ content: {
16689
+ "application/json": coreComponents["schemas"]["JournalRecord"];
16690
+ };
16691
+ };
16692
+ 401: coreComponents["responses"]["Unauthorized"];
16693
+ 403: coreComponents["responses"]["Forbidden"];
16694
+ 404: coreComponents["responses"]["NotFound"];
16695
+ };
16696
+ };
16697
+ /** Creates or updates (upsert) a journal record. */
16698
+ PutJournalRecord: {
16699
+ parameters: {
16700
+ path: {
16701
+ /** Resource identifier string. */
16702
+ id: coreComponents["parameters"]["resourceId"];
16703
+ /** ID of the journal record. */
16704
+ journalRecordId: coreComponents["parameters"]["journalRecordId"];
16705
+ };
16706
+ };
16707
+ responses: {
16708
+ /** Journal record updated. */
16709
+ 200: {
16710
+ content: {
16711
+ "application/json": coreComponents["schemas"]["JournalRecord"];
16712
+ };
16713
+ };
16714
+ /** Journal record created. */
16715
+ 201: {
16716
+ headers: {};
16717
+ content: {
16718
+ "application/json": coreComponents["schemas"]["JournalRecord"];
16719
+ };
16720
+ };
16721
+ 401: coreComponents["responses"]["Unauthorized"];
16722
+ 403: coreComponents["responses"]["Forbidden"];
16723
+ 404: coreComponents["responses"]["NotFound"];
16724
+ 422: coreComponents["responses"]["ValidationError"];
16725
+ };
16726
+ /** Journal record resource. */
16727
+ requestBody: {
16728
+ content: {
16729
+ "application/json": coreComponents["schemas"]["JournalRecord"];
16730
+ };
16731
+ };
16732
+ };
16733
+ /** Deletes a journal record. */
16734
+ DeleteJournalRecord: {
16735
+ parameters: {
16736
+ path: {
16737
+ /** Resource identifier string. */
16738
+ id: coreComponents["parameters"]["resourceId"];
16739
+ /** ID of the journal record. */
16740
+ journalRecordId: coreComponents["parameters"]["journalRecordId"];
16741
+ };
16742
+ };
16743
+ responses: {
16744
+ /** Journal record deleted. */
16745
+ 204: never;
16746
+ 401: coreComponents["responses"]["Unauthorized"];
16747
+ 403: coreComponents["responses"]["Forbidden"];
16748
+ 404: coreComponents["responses"]["NotFound"];
16749
+ 422: coreComponents["responses"]["ValidationError"];
16750
+ };
16751
+ };
16180
16752
  /** Retrieves a list of KYC requests. */
16181
16753
  GetKycRequestCollection: {
16182
16754
  parameters: {
@@ -18778,7 +19350,7 @@ export interface operations {
18778
19350
  409: coreComponents["responses"]["Conflict"];
18779
19351
  422: coreComponents["responses"]["ValidationError"];
18780
19352
  };
18781
- requestBody: coreComponents["requestBodies"]["PayoutRequest"];
19353
+ requestBody: coreComponents["requestBodies"]["CreditTransactionRequest"];
18782
19354
  };
18783
19355
  /**
18784
19356
  * Query a Transaction with a specified identifier string.
@@ -19355,7 +19927,7 @@ export interface operations {
19355
19927
  200: {
19356
19928
  headers: {};
19357
19929
  content: {
19358
- "application/json": coreComponents["schemas"]["PayoutRequest-2"][];
19930
+ "application/json": coreComponents["schemas"]["PayoutRequest"][];
19359
19931
  };
19360
19932
  };
19361
19933
  401: coreComponents["responses"]["Unauthorized"];
@@ -19384,7 +19956,7 @@ export interface operations {
19384
19956
  /** Payout request retrieved. */
19385
19957
  200: {
19386
19958
  content: {
19387
- "application/json": coreComponents["schemas"]["PayoutRequest-2"];
19959
+ "application/json": coreComponents["schemas"]["PayoutRequest"];
19388
19960
  };
19389
19961
  };
19390
19962
  401: coreComponents["responses"]["Unauthorized"];
@@ -19408,7 +19980,7 @@ export interface operations {
19408
19980
  200: {
19409
19981
  headers: {};
19410
19982
  content: {
19411
- "application/json": coreComponents["schemas"]["PayoutRequest-2"];
19983
+ "application/json": coreComponents["schemas"]["PayoutRequest"];
19412
19984
  };
19413
19985
  };
19414
19986
  401: coreComponents["responses"]["Unauthorized"];
@@ -19432,7 +20004,7 @@ export interface operations {
19432
20004
  200: {
19433
20005
  headers: {};
19434
20006
  content: {
19435
- "application/json": coreComponents["schemas"]["PayoutRequest-2"];
20007
+ "application/json": coreComponents["schemas"]["PayoutRequest"];
19436
20008
  };
19437
20009
  };
19438
20010
  401: coreComponents["responses"]["Unauthorized"];
@@ -21099,6 +21671,7 @@ export interface usersComponents {
21099
21671
  | "iWallet"
21100
21672
  | "Jeton"
21101
21673
  | "jpay"
21674
+ | "KakaoPay"
21102
21675
  | "Khelocard"
21103
21676
  | "Klarna"
21104
21677
  | "KNOT"
@@ -21132,6 +21705,7 @@ export interface usersComponents {
21132
21705
  | "Pagsmile-lottery"
21133
21706
  | "Pagsmile-deposit-express"
21134
21707
  | "PayCash"
21708
+ | "Payco"
21135
21709
  | "Payeer"
21136
21710
  | "PaymentAsia-crypto"
21137
21711
  | "Paysafecard"
@@ -21157,6 +21731,7 @@ export interface usersComponents {
21157
21731
  | "rapyd-checkout"
21158
21732
  | "Resurs"
21159
21733
  | "SafetyPay"
21734
+ | "Samsung Pay"
21160
21735
  | "SEPA"
21161
21736
  | "Siirto"
21162
21737
  | "Skrill"
@@ -25768,6 +26343,12 @@ export interface usersComponents {
25768
26343
  taxCategoryId?: string;
25769
26344
  /** Accounting code of the product. */
25770
26345
  accountingCode?: string;
26346
+ recognition?: {
26347
+ /** ID of the debit journal account. */
26348
+ debitAccountId?: string | null;
26349
+ /** ID of the credit journal account. */
26350
+ creditAccountId?: string | null;
26351
+ } | null;
25771
26352
  /** Related resource links. */
25772
26353
  _links?: usersComponents["schemas"]["SelfLink"][];
25773
26354
  };
@@ -26710,6 +27291,7 @@ export interface usersComponents {
26710
27291
  | "iWallet"
26711
27292
  | "Jeton"
26712
27293
  | "jpay"
27294
+ | "KakaoPay"
26713
27295
  | "Khelocard"
26714
27296
  | "Klarna"
26715
27297
  | "KNOT"
@@ -26739,6 +27321,7 @@ export interface usersComponents {
26739
27321
  | "Pagsmile-deposit-express"
26740
27322
  | "Pagsmile-lottery"
26741
27323
  | "PayCash"
27324
+ | "Payco"
26742
27325
  | "Payeer"
26743
27326
  | "PaymentAsia-crypto"
26744
27327
  | "Paymero"
@@ -26762,6 +27345,7 @@ export interface usersComponents {
26762
27345
  | "rapyd-checkout"
26763
27346
  | "Resurs"
26764
27347
  | "SafetyPay"
27348
+ | "Samsung Pay"
26765
27349
  | "SEPA"
26766
27350
  | "Skrill"
26767
27351
  | "Skrill Rapid Transfer"
@@ -35135,6 +35719,7 @@ export interface storefrontComponents {
35135
35719
  | "iWallet"
35136
35720
  | "Jeton"
35137
35721
  | "jpay"
35722
+ | "KakaoPay"
35138
35723
  | "Khelocard"
35139
35724
  | "Klarna"
35140
35725
  | "KNOT"
@@ -35168,6 +35753,7 @@ export interface storefrontComponents {
35168
35753
  | "Pagsmile-lottery"
35169
35754
  | "Pagsmile-deposit-express"
35170
35755
  | "PayCash"
35756
+ | "Payco"
35171
35757
  | "Payeer"
35172
35758
  | "PaymentAsia-crypto"
35173
35759
  | "Paysafecard"
@@ -35193,6 +35779,7 @@ export interface storefrontComponents {
35193
35779
  | "rapyd-checkout"
35194
35780
  | "Resurs"
35195
35781
  | "SafetyPay"
35782
+ | "Samsung Pay"
35196
35783
  | "SEPA"
35197
35784
  | "Siirto"
35198
35785
  | "Skrill"
@@ -39714,6 +40301,12 @@ export interface storefrontComponents {
39714
40301
  taxCategoryId?: string;
39715
40302
  /** Accounting code of the product. */
39716
40303
  accountingCode?: string;
40304
+ recognition?: {
40305
+ /** ID of the debit journal account. */
40306
+ debitAccountId?: string | null;
40307
+ /** ID of the credit journal account. */
40308
+ creditAccountId?: string | null;
40309
+ } | null;
39717
40310
  /** Related resource links. */
39718
40311
  _links?: storefrontComponents["schemas"]["SelfLink"][];
39719
40312
  };
@@ -40886,6 +41479,7 @@ export interface storefrontComponents {
40886
41479
  | "iWallet"
40887
41480
  | "Jeton"
40888
41481
  | "jpay"
41482
+ | "KakaoPay"
40889
41483
  | "Khelocard"
40890
41484
  | "Klarna"
40891
41485
  | "KNOT"
@@ -40915,6 +41509,7 @@ export interface storefrontComponents {
40915
41509
  | "Pagsmile-deposit-express"
40916
41510
  | "Pagsmile-lottery"
40917
41511
  | "PayCash"
41512
+ | "Payco"
40918
41513
  | "Payeer"
40919
41514
  | "PaymentAsia-crypto"
40920
41515
  | "Paymero"
@@ -40938,6 +41533,7 @@ export interface storefrontComponents {
40938
41533
  | "rapyd-checkout"
40939
41534
  | "Resurs"
40940
41535
  | "SafetyPay"
41536
+ | "Samsung Pay"
40941
41537
  | "SEPA"
40942
41538
  | "Skrill"
40943
41539
  | "Skrill Rapid Transfer"
@@ -41662,7 +42258,7 @@ export interface storefrontComponents {
41662
42258
  createdTime?: storefrontComponents["schemas"]["CreatedTime"];
41663
42259
  updatedTime?: storefrontComponents["schemas"]["UpdatedTime"];
41664
42260
  };
41665
- "PayoutRequest-2": {
42261
+ PayoutRequest: {
41666
42262
  id?: storefrontComponents["schemas"]["ResourceId"];
41667
42263
  websiteId: storefrontComponents["schemas"]["WebsiteId"];
41668
42264
  customerId?: storefrontComponents["schemas"]["CustomerId"];
@@ -43054,7 +43650,7 @@ export interface operations {
43054
43650
  200: {
43055
43651
  headers: {};
43056
43652
  content: {
43057
- "application/json": storefrontComponents["schemas"]["PayoutRequest-2"][];
43653
+ "application/json": storefrontComponents["schemas"]["PayoutRequest"][];
43058
43654
  };
43059
43655
  };
43060
43656
  401: storefrontComponents["responses"]["Unauthorized"];
@@ -43068,7 +43664,7 @@ export interface operations {
43068
43664
  201: {
43069
43665
  headers: {};
43070
43666
  content: {
43071
- "application/json": storefrontComponents["schemas"]["PayoutRequest-2"];
43667
+ "application/json": storefrontComponents["schemas"]["PayoutRequest"];
43072
43668
  };
43073
43669
  };
43074
43670
  401: storefrontComponents["responses"]["Unauthorized"];
@@ -43078,7 +43674,7 @@ export interface operations {
43078
43674
  /** Payout request resource. */
43079
43675
  requestBody: {
43080
43676
  content: {
43081
- "application/json": storefrontComponents["schemas"]["PayoutRequest-2"];
43677
+ "application/json": storefrontComponents["schemas"]["PayoutRequest"];
43082
43678
  };
43083
43679
  };
43084
43680
  };
@@ -43104,7 +43700,7 @@ export interface operations {
43104
43700
  /** Payout request retrieved. */
43105
43701
  200: {
43106
43702
  content: {
43107
- "application/json": storefrontComponents["schemas"]["PayoutRequest-2"];
43703
+ "application/json": storefrontComponents["schemas"]["PayoutRequest"];
43108
43704
  };
43109
43705
  };
43110
43706
  401: storefrontComponents["responses"]["Unauthorized"];
@@ -43125,7 +43721,7 @@ export interface operations {
43125
43721
  200: {
43126
43722
  headers: {};
43127
43723
  content: {
43128
- "application/json": storefrontComponents["schemas"]["PayoutRequest-2"];
43724
+ "application/json": storefrontComponents["schemas"]["PayoutRequest"];
43129
43725
  };
43130
43726
  };
43131
43727
  401: storefrontComponents["responses"]["Unauthorized"];
@@ -46876,6 +47472,54 @@ declare module "resources/invoices-resource" {
46876
47472
  }): any;
46877
47473
  };
46878
47474
  }
47475
+ declare module "resources/journal-accounts-resource" {
47476
+ export default function JournalAccountsResource({ apiHandler }: {
47477
+ apiHandler: any;
47478
+ }): {
47479
+ getAllAccounts({ limit, offset, filter, sort, }?: rebilly.GetJournalAccountCollectionRequest): rebilly.GetJournalAccountCollectionResponsePromise;
47480
+ createAccount({ id, data }: rebilly.CreateJournalAccountRequest): rebilly.PostJournalAccountResponsePromise;
47481
+ getAccount({ id }: {
47482
+ id: any;
47483
+ }): rebilly.GetJournalAccountResponsePromise;
47484
+ updateAccount({ id, data }: {
47485
+ id: any;
47486
+ data: any;
47487
+ }): rebilly.PutJournalAccountResponsePromise;
47488
+ };
47489
+ }
47490
+ declare module "resources/journal-entries-resource" {
47491
+ export default function JournalEntriesResource({ apiHandler }: {
47492
+ apiHandler: any;
47493
+ }): {
47494
+ getAllEntries({ limit, offset, filter, sort, }?: rebilly.GetJournalEntryCollectionRequest): rebilly.GetJournalEntryCollectionResponsePromise;
47495
+ createEntry({ id, data }: rebilly.CreateJournalEntryRequest): rebilly.PostJournalEntryResponsePromise;
47496
+ getEntry({ id }: {
47497
+ id: any;
47498
+ }): rebilly.GetJournalEntryResponsePromise;
47499
+ updateEntry({ id, data }: {
47500
+ id: any;
47501
+ data: any;
47502
+ }): rebilly.PutJournalEntryResponsePromise;
47503
+ getAllRecords({ id, limit, offset, filter, sort, expand, }: rebilly.GetJournalRecordCollectionRequest): rebilly.GetJournalRecordCollectionResponsePromise;
47504
+ createRecord({ id, data }: {
47505
+ id: any;
47506
+ data: any;
47507
+ }): any;
47508
+ getRecord({ id, journalRecordId }: {
47509
+ id: any;
47510
+ journalRecordId: any;
47511
+ }): rebilly.GetJournalRecordResponsePromise;
47512
+ updateRecord({ id, journalRecordId, data }: {
47513
+ id: any;
47514
+ journalRecordId: any;
47515
+ data: any;
47516
+ }): rebilly.PutJournalRecordResponsePromise;
47517
+ deleteRecord({ id, journalRecordId }: {
47518
+ id: any;
47519
+ journalRecordId: any;
47520
+ }): any;
47521
+ };
47522
+ }
46879
47523
  declare module "resources/kyc-documents-resource" {
46880
47524
  export default function KycDocumentsResource({ apiHandler }: {
46881
47525
  apiHandler: any;
@@ -48686,6 +49330,56 @@ declare module "resources/api-instance" {
48686
49330
  id: any;
48687
49331
  }): any;
48688
49332
  };
49333
+ journalAccounts: {
49334
+ getAllAccounts({ limit, offset, filter, sort, }?: {
49335
+ limit?: number;
49336
+ offset?: number;
49337
+ filter?: string;
49338
+ sort?: string[];
49339
+ }): rebilly.GetJournalAccountCollectionResponsePromise;
49340
+ createAccount({ id, data }: rebilly.CreateJournalAccountRequest): rebilly.PostJournalAccountResponsePromise;
49341
+ getAccount({ id }: {
49342
+ id: any;
49343
+ }): rebilly.GetJournalAccountResponsePromise;
49344
+ updateAccount({ id, data }: {
49345
+ id: any;
49346
+ data: any;
49347
+ }): rebilly.PutJournalAccountResponsePromise;
49348
+ };
49349
+ journalEntries: {
49350
+ getAllEntries({ limit, offset, filter, sort, }?: {
49351
+ limit?: number;
49352
+ offset?: number;
49353
+ filter?: string;
49354
+ sort?: string[];
49355
+ }): rebilly.GetJournalEntryCollectionResponsePromise;
49356
+ createEntry({ id, data }: rebilly.CreateJournalEntryRequest): rebilly.PostJournalEntryResponsePromise;
49357
+ getEntry({ id }: {
49358
+ id: any;
49359
+ }): rebilly.GetJournalEntryResponsePromise;
49360
+ updateEntry({ id, data }: {
49361
+ id: any;
49362
+ data: any;
49363
+ }): rebilly.PutJournalEntryResponsePromise;
49364
+ getAllRecords({ id, limit, offset, filter, sort, expand, }: rebilly.GetJournalRecordCollectionRequest): rebilly.GetJournalRecordCollectionResponsePromise;
49365
+ createRecord({ id, data }: {
49366
+ id: any;
49367
+ data: any;
49368
+ }): any;
49369
+ getRecord({ id, journalRecordId }: {
49370
+ id: any;
49371
+ journalRecordId: any;
49372
+ }): rebilly.GetJournalRecordResponsePromise;
49373
+ updateRecord({ id, journalRecordId, data }: {
49374
+ id: any;
49375
+ journalRecordId: any;
49376
+ data: any;
49377
+ }): rebilly.PutJournalRecordResponsePromise;
49378
+ deleteRecord({ id, journalRecordId }: {
49379
+ id: any;
49380
+ journalRecordId: any;
49381
+ }): any;
49382
+ };
48689
49383
  kycDocuments: {
48690
49384
  getAll({ limit, offset, filter, sort, expand, }?: {
48691
49385
  limit?: number;