rebilly-js-sdk 58.3.0 → 58.4.1

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/CHANGELOG.md CHANGED
@@ -1,6 +1 @@
1
- ## [58.3.0](https://github.com/Rebilly/rebilly/compare/rebilly-js-sdk-v58.2.0...rebilly-js-sdk-v58.3.0) (2024-11-26)
2
-
3
-
4
- ### Features
5
-
6
- * **cashier:** Add hosted app ([#8723](https://github.com/Rebilly/rebilly/issues/8723)) ([49481ec](https://github.com/Rebilly/rebilly/commit/49481ec1336a518d5ba513b53b24a46fdcc47acb))
1
+ ## [58.4.1](https://github.com/Rebilly/rebilly/compare/rebilly-js-sdk-v58.4.0...rebilly-js-sdk-v58.4.1) (2024-11-27)
@@ -7680,6 +7680,7 @@ export interface coreComponents {
7680
7680
  | "NOWPayments"
7681
7681
  | "NuaPay"
7682
7682
  | "OchaPay"
7683
+ | "OmniMatrix"
7683
7684
  | "Onlineueberweisen"
7684
7685
  | "OnRamp"
7685
7686
  | "Orbital"
@@ -7889,6 +7890,7 @@ export interface coreComponents {
7889
7890
  | "NuaPay"
7890
7891
  | "Nuvei"
7891
7892
  | "OchaPay"
7893
+ | "OmniMatrix"
7892
7894
  | "Onlineueberweisen"
7893
7895
  | "OnRamp"
7894
7896
  | "Orbital"
@@ -10878,6 +10880,8 @@ export interface coreComponents {
10878
10880
  } | null;
10879
10881
  /** Details of the one-time sale plan. Use this plan for non-recurring, one-time, sales. */
10880
10882
  OneTimeSalePlan: {
10883
+ /** ID of the plan. */
10884
+ id?: string;
10881
10885
  /**
10882
10886
  * Name of the plan.
10883
10887
  * This name is displayed on invoices and receipts.
@@ -10928,10 +10932,10 @@ export interface coreComponents {
10928
10932
  * The service period anchor is used, in conjunction with the subscription
10929
10933
  * start time, to calculate when the service period starts and ends.
10930
10934
  */
10931
- ServicePeriodAnchorInstruction: Partial<
10932
- coreComponents["schemas"]["SchedulingMethodDayOfMonth"]
10933
- > &
10934
- Partial<coreComponents["schemas"]["SchedulingMethodDayOfWeek"]>;
10935
+ ServicePeriodAnchorInstruction:
10936
+ | (Partial<coreComponents["schemas"]["SchedulingMethodDayOfMonth"]> &
10937
+ Partial<coreComponents["schemas"]["SchedulingMethodDayOfWeek"]>)
10938
+ | null;
10935
10939
  PlanTrial: {
10936
10940
  /**
10937
10941
  * Price of setting up a trial.
@@ -10946,7 +10950,7 @@ export interface coreComponents {
10946
10950
  /** Length of time. */
10947
10951
  length: number;
10948
10952
  };
10949
- };
10953
+ } | null;
10950
10954
  /**
10951
10955
  * Use invoice time shift to control the billing time.
10952
10956
  *
@@ -10999,6 +11003,8 @@ export interface coreComponents {
10999
11003
  } | null;
11000
11004
  /** Details of the subscription order plan. Use this plan for subscriptions or sales that reoccur over a period of time. */
11001
11005
  SubscriptionPlan: {
11006
+ /** ID of the plan. */
11007
+ id?: string;
11002
11008
  /**
11003
11009
  * Name of the plan.
11004
11010
  * This name is displayed on invoices and receipts.
@@ -11037,12 +11043,12 @@ export interface coreComponents {
11037
11043
  * Service interval settings.
11038
11044
  * For a one-time sale, set this value to `null`.
11039
11045
  */
11040
- recurringInterval: {
11046
+ recurringInterval?: {
11041
11047
  periodAnchorInstruction?: coreComponents["schemas"]["ServicePeriodAnchorInstruction"];
11042
11048
  /** Unit of time. */
11043
- unit?: "day" | "week" | "month" | "year";
11049
+ unit: "day" | "week" | "month" | "year";
11044
11050
  /** Length of time. */
11045
- length?: number;
11051
+ length: number;
11046
11052
  /**
11047
11053
  * Number of invoices the subscription order generates.
11048
11054
  * If this value is `1`, only the initial order creation is generated.
@@ -11063,7 +11069,7 @@ export interface coreComponents {
11063
11069
  * Trial configuration setting.
11064
11070
  * If you do not want to offer a trial, set this value to `null`.
11065
11071
  */
11066
- trial?: coreComponents["schemas"]["PlanTrial"] | null;
11072
+ trial?: coreComponents["schemas"]["PlanTrial"];
11067
11073
  /**
11068
11074
  * Use metered billing when an exact quantity is unknown.
11069
11075
  * Report usage during a service period and charge customers afterwards.
@@ -11093,6 +11099,8 @@ export interface coreComponents {
11093
11099
  * Trials may have a reduced fee, or may be free.
11094
11100
  */
11095
11101
  TrialOnlyPlan: {
11102
+ /** ID of the plan. */
11103
+ id?: string;
11096
11104
  /**
11097
11105
  * Name of the plan.
11098
11106
  * This name is displayed on invoices and receipts.
@@ -11145,12 +11153,9 @@ export interface coreComponents {
11145
11153
  rel?: "self" | "attachments";
11146
11154
  }[];
11147
11155
  };
11148
- Plan: {
11149
- /** ID of the plan. */
11150
- id?: string;
11151
- } & (Partial<coreComponents["schemas"]["OneTimeSalePlan"]> &
11156
+ Plan: Partial<coreComponents["schemas"]["OneTimeSalePlan"]> &
11152
11157
  Partial<coreComponents["schemas"]["SubscriptionPlan"]> &
11153
- Partial<coreComponents["schemas"]["TrialOnlyPlan"]>);
11158
+ Partial<coreComponents["schemas"]["TrialOnlyPlan"]>;
11154
11159
  /**
11155
11160
  * Products are the items that your business sells.
11156
11161
  * Products include digital goods, services, and physical goods.
@@ -17716,6 +17721,16 @@ export interface coreComponents {
17716
17721
  secretWord: string;
17717
17722
  };
17718
17723
  };
17724
+ /** OmniMatrix gateway configuration. */
17725
+ OmniMatrix: coreComponents["schemas"]["GatewayAccount"] & {
17726
+ /** OmniMatrix credentials object. */
17727
+ credentials: {
17728
+ /** ID of the OmniMatrix merchant. */
17729
+ merchantId: string;
17730
+ /** OmniMatrix secret key. */
17731
+ secret: string;
17732
+ };
17733
+ };
17719
17734
  /** Onlineueberweisen gateway configuration. */
17720
17735
  Onlineueberweisen: coreComponents["schemas"]["GatewayAccount"] & {
17721
17736
  /** Onlineueberweisen credentials object. */
@@ -41587,6 +41602,7 @@ export interface storefrontComponents {
41587
41602
  | "NOWPayments"
41588
41603
  | "NuaPay"
41589
41604
  | "OchaPay"
41605
+ | "OmniMatrix"
41590
41606
  | "Onlineueberweisen"
41591
41607
  | "OnRamp"
41592
41608
  | "Orbital"
@@ -41796,6 +41812,7 @@ export interface storefrontComponents {
41796
41812
  | "NuaPay"
41797
41813
  | "Nuvei"
41798
41814
  | "OchaPay"
41815
+ | "OmniMatrix"
41799
41816
  | "Onlineueberweisen"
41800
41817
  | "OnRamp"
41801
41818
  | "Orbital"
@@ -44785,6 +44802,8 @@ export interface storefrontComponents {
44785
44802
  } | null;
44786
44803
  /** Details of the one-time sale plan. Use this plan for non-recurring, one-time, sales. */
44787
44804
  OneTimeSalePlan: {
44805
+ /** ID of the plan. */
44806
+ id?: string;
44788
44807
  /**
44789
44808
  * Name of the plan.
44790
44809
  * This name is displayed on invoices and receipts.
@@ -44835,10 +44854,10 @@ export interface storefrontComponents {
44835
44854
  * The service period anchor is used, in conjunction with the subscription
44836
44855
  * start time, to calculate when the service period starts and ends.
44837
44856
  */
44838
- ServicePeriodAnchorInstruction: Partial<
44839
- storefrontComponents["schemas"]["SchedulingMethodDayOfMonth"]
44840
- > &
44841
- Partial<storefrontComponents["schemas"]["SchedulingMethodDayOfWeek"]>;
44857
+ ServicePeriodAnchorInstruction:
44858
+ | (Partial<storefrontComponents["schemas"]["SchedulingMethodDayOfMonth"]> &
44859
+ Partial<storefrontComponents["schemas"]["SchedulingMethodDayOfWeek"]>)
44860
+ | null;
44842
44861
  PlanTrial: {
44843
44862
  /**
44844
44863
  * Price of setting up a trial.
@@ -44853,7 +44872,7 @@ export interface storefrontComponents {
44853
44872
  /** Length of time. */
44854
44873
  length: number;
44855
44874
  };
44856
- };
44875
+ } | null;
44857
44876
  /**
44858
44877
  * Use invoice time shift to control the billing time.
44859
44878
  *
@@ -44906,6 +44925,8 @@ export interface storefrontComponents {
44906
44925
  } | null;
44907
44926
  /** Details of the subscription order plan. Use this plan for subscriptions or sales that reoccur over a period of time. */
44908
44927
  SubscriptionPlan: {
44928
+ /** ID of the plan. */
44929
+ id?: string;
44909
44930
  /**
44910
44931
  * Name of the plan.
44911
44932
  * This name is displayed on invoices and receipts.
@@ -44944,12 +44965,12 @@ export interface storefrontComponents {
44944
44965
  * Service interval settings.
44945
44966
  * For a one-time sale, set this value to `null`.
44946
44967
  */
44947
- recurringInterval: {
44968
+ recurringInterval?: {
44948
44969
  periodAnchorInstruction?: storefrontComponents["schemas"]["ServicePeriodAnchorInstruction"];
44949
44970
  /** Unit of time. */
44950
- unit?: "day" | "week" | "month" | "year";
44971
+ unit: "day" | "week" | "month" | "year";
44951
44972
  /** Length of time. */
44952
- length?: number;
44973
+ length: number;
44953
44974
  /**
44954
44975
  * Number of invoices the subscription order generates.
44955
44976
  * If this value is `1`, only the initial order creation is generated.
@@ -44970,7 +44991,7 @@ export interface storefrontComponents {
44970
44991
  * Trial configuration setting.
44971
44992
  * If you do not want to offer a trial, set this value to `null`.
44972
44993
  */
44973
- trial?: storefrontComponents["schemas"]["PlanTrial"] | null;
44994
+ trial?: storefrontComponents["schemas"]["PlanTrial"];
44974
44995
  /**
44975
44996
  * Use metered billing when an exact quantity is unknown.
44976
44997
  * Report usage during a service period and charge customers afterwards.
@@ -45000,6 +45021,8 @@ export interface storefrontComponents {
45000
45021
  * Trials may have a reduced fee, or may be free.
45001
45022
  */
45002
45023
  TrialOnlyPlan: {
45024
+ /** ID of the plan. */
45025
+ id?: string;
45003
45026
  /**
45004
45027
  * Name of the plan.
45005
45028
  * This name is displayed on invoices and receipts.
@@ -45052,12 +45075,9 @@ export interface storefrontComponents {
45052
45075
  rel?: "self" | "attachments";
45053
45076
  }[];
45054
45077
  };
45055
- Plan: {
45056
- /** ID of the plan. */
45057
- id?: string;
45058
- } & (Partial<storefrontComponents["schemas"]["OneTimeSalePlan"]> &
45078
+ Plan: Partial<storefrontComponents["schemas"]["OneTimeSalePlan"]> &
45059
45079
  Partial<storefrontComponents["schemas"]["SubscriptionPlan"]> &
45060
- Partial<storefrontComponents["schemas"]["TrialOnlyPlan"]>);
45080
+ Partial<storefrontComponents["schemas"]["TrialOnlyPlan"]>;
45061
45081
  /**
45062
45082
  * Products are the items that your business sells.
45063
45083
  * Products include digital goods, services, and physical goods.
@@ -51623,6 +51643,16 @@ export interface storefrontComponents {
51623
51643
  secretWord: string;
51624
51644
  };
51625
51645
  };
51646
+ /** OmniMatrix gateway configuration. */
51647
+ OmniMatrix: storefrontComponents["schemas"]["GatewayAccount"] & {
51648
+ /** OmniMatrix credentials object. */
51649
+ credentials: {
51650
+ /** ID of the OmniMatrix merchant. */
51651
+ merchantId: string;
51652
+ /** OmniMatrix secret key. */
51653
+ secret: string;
51654
+ };
51655
+ };
51626
51656
  /** Onlineueberweisen gateway configuration. */
51627
51657
  Onlineueberweisen: storefrontComponents["schemas"]["GatewayAccount"] & {
51628
51658
  /** Onlineueberweisen credentials object. */
@@ -64400,6 +64430,7 @@ export interface reportsComponents {
64400
64430
  | "NOWPayments"
64401
64431
  | "NuaPay"
64402
64432
  | "OchaPay"
64433
+ | "OmniMatrix"
64403
64434
  | "Onlineueberweisen"
64404
64435
  | "OnRamp"
64405
64436
  | "Orbital"
@@ -64609,6 +64640,7 @@ export interface reportsComponents {
64609
64640
  | "NuaPay"
64610
64641
  | "Nuvei"
64611
64642
  | "OchaPay"
64643
+ | "OmniMatrix"
64612
64644
  | "Onlineueberweisen"
64613
64645
  | "OnRamp"
64614
64646
  | "Orbital"
@@ -67598,6 +67630,8 @@ export interface reportsComponents {
67598
67630
  } | null;
67599
67631
  /** Details of the one-time sale plan. Use this plan for non-recurring, one-time, sales. */
67600
67632
  OneTimeSalePlan: {
67633
+ /** ID of the plan. */
67634
+ id?: string;
67601
67635
  /**
67602
67636
  * Name of the plan.
67603
67637
  * This name is displayed on invoices and receipts.
@@ -67648,10 +67682,10 @@ export interface reportsComponents {
67648
67682
  * The service period anchor is used, in conjunction with the subscription
67649
67683
  * start time, to calculate when the service period starts and ends.
67650
67684
  */
67651
- ServicePeriodAnchorInstruction: Partial<
67652
- reportsComponents["schemas"]["SchedulingMethodDayOfMonth"]
67653
- > &
67654
- Partial<reportsComponents["schemas"]["SchedulingMethodDayOfWeek"]>;
67685
+ ServicePeriodAnchorInstruction:
67686
+ | (Partial<reportsComponents["schemas"]["SchedulingMethodDayOfMonth"]> &
67687
+ Partial<reportsComponents["schemas"]["SchedulingMethodDayOfWeek"]>)
67688
+ | null;
67655
67689
  PlanTrial: {
67656
67690
  /**
67657
67691
  * Price of setting up a trial.
@@ -67666,7 +67700,7 @@ export interface reportsComponents {
67666
67700
  /** Length of time. */
67667
67701
  length: number;
67668
67702
  };
67669
- };
67703
+ } | null;
67670
67704
  /**
67671
67705
  * Use invoice time shift to control the billing time.
67672
67706
  *
@@ -67719,6 +67753,8 @@ export interface reportsComponents {
67719
67753
  } | null;
67720
67754
  /** Details of the subscription order plan. Use this plan for subscriptions or sales that reoccur over a period of time. */
67721
67755
  SubscriptionPlan: {
67756
+ /** ID of the plan. */
67757
+ id?: string;
67722
67758
  /**
67723
67759
  * Name of the plan.
67724
67760
  * This name is displayed on invoices and receipts.
@@ -67757,12 +67793,12 @@ export interface reportsComponents {
67757
67793
  * Service interval settings.
67758
67794
  * For a one-time sale, set this value to `null`.
67759
67795
  */
67760
- recurringInterval: {
67796
+ recurringInterval?: {
67761
67797
  periodAnchorInstruction?: reportsComponents["schemas"]["ServicePeriodAnchorInstruction"];
67762
67798
  /** Unit of time. */
67763
- unit?: "day" | "week" | "month" | "year";
67799
+ unit: "day" | "week" | "month" | "year";
67764
67800
  /** Length of time. */
67765
- length?: number;
67801
+ length: number;
67766
67802
  /**
67767
67803
  * Number of invoices the subscription order generates.
67768
67804
  * If this value is `1`, only the initial order creation is generated.
@@ -67783,7 +67819,7 @@ export interface reportsComponents {
67783
67819
  * Trial configuration setting.
67784
67820
  * If you do not want to offer a trial, set this value to `null`.
67785
67821
  */
67786
- trial?: reportsComponents["schemas"]["PlanTrial"] | null;
67822
+ trial?: reportsComponents["schemas"]["PlanTrial"];
67787
67823
  /**
67788
67824
  * Use metered billing when an exact quantity is unknown.
67789
67825
  * Report usage during a service period and charge customers afterwards.
@@ -67813,6 +67849,8 @@ export interface reportsComponents {
67813
67849
  * Trials may have a reduced fee, or may be free.
67814
67850
  */
67815
67851
  TrialOnlyPlan: {
67852
+ /** ID of the plan. */
67853
+ id?: string;
67816
67854
  /**
67817
67855
  * Name of the plan.
67818
67856
  * This name is displayed on invoices and receipts.
@@ -67865,12 +67903,9 @@ export interface reportsComponents {
67865
67903
  rel?: "self" | "attachments";
67866
67904
  }[];
67867
67905
  };
67868
- Plan: {
67869
- /** ID of the plan. */
67870
- id?: string;
67871
- } & (Partial<reportsComponents["schemas"]["OneTimeSalePlan"]> &
67906
+ Plan: Partial<reportsComponents["schemas"]["OneTimeSalePlan"]> &
67872
67907
  Partial<reportsComponents["schemas"]["SubscriptionPlan"]> &
67873
- Partial<reportsComponents["schemas"]["TrialOnlyPlan"]>);
67908
+ Partial<reportsComponents["schemas"]["TrialOnlyPlan"]>;
67874
67909
  /**
67875
67910
  * Products are the items that your business sells.
67876
67911
  * Products include digital goods, services, and physical goods.
@@ -74436,6 +74471,16 @@ export interface reportsComponents {
74436
74471
  secretWord: string;
74437
74472
  };
74438
74473
  };
74474
+ /** OmniMatrix gateway configuration. */
74475
+ OmniMatrix: reportsComponents["schemas"]["GatewayAccount"] & {
74476
+ /** OmniMatrix credentials object. */
74477
+ credentials: {
74478
+ /** ID of the OmniMatrix merchant. */
74479
+ merchantId: string;
74480
+ /** OmniMatrix secret key. */
74481
+ secret: string;
74482
+ };
74483
+ };
74439
74484
  /** Onlineueberweisen gateway configuration. */
74440
74485
  Onlineueberweisen: reportsComponents["schemas"]["GatewayAccount"] & {
74441
74486
  /** Onlineueberweisen credentials object. */