orb-billing 1.60.0 → 1.61.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.
Files changed (102) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +7 -0
  3. data/README.md +1 -1
  4. data/lib/orb/client.rb +4 -0
  5. data/lib/orb/models/account/billing_entity.rb +214 -0
  6. data/lib/orb/models/account/billing_entity_archive_by_external_id_params.rb +22 -0
  7. data/lib/orb/models/account/billing_entity_archive_params.rb +22 -0
  8. data/lib/orb/models/account/billing_entity_create_params.rb +117 -0
  9. data/lib/orb/models/account/billing_entity_fetch_by_external_id_params.rb +22 -0
  10. data/lib/orb/models/account/billing_entity_fetch_params.rb +22 -0
  11. data/lib/orb/models/account/billing_entity_list_params.rb +55 -0
  12. data/lib/orb/models/account/billing_entity_unarchive_by_external_id_params.rb +22 -0
  13. data/lib/orb/models/account/billing_entity_unarchive_params.rb +22 -0
  14. data/lib/orb/models/account/billing_entity_update_by_external_id_params.rb +177 -0
  15. data/lib/orb/models/account/billing_entity_update_params.rb +179 -0
  16. data/lib/orb/models/account/payment_gateway_connection.rb +75 -0
  17. data/lib/orb/models/account/payment_gateway_connection_fetch_params.rb +22 -0
  18. data/lib/orb/models/account/payment_gateway_connection_list_params.rb +65 -0
  19. data/lib/orb/models/customers/customer_payment_gateway_connection.rb +89 -0
  20. data/lib/orb/models/customers/payment_gateway_connection_create_by_external_id_params.rb +53 -0
  21. data/lib/orb/models/customers/payment_gateway_connection_create_params.rb +52 -0
  22. data/lib/orb/models/customers/payment_gateway_connection_delete_by_external_id_params.rb +28 -0
  23. data/lib/orb/models/customers/payment_gateway_connection_delete_params.rb +28 -0
  24. data/lib/orb/models/customers/payment_gateway_connection_list_by_external_id_params.rb +39 -0
  25. data/lib/orb/models/customers/payment_gateway_connection_list_by_external_id_response.rb +25 -0
  26. data/lib/orb/models/customers/payment_gateway_connection_list_params.rb +39 -0
  27. data/lib/orb/models/customers/payment_gateway_connection_list_response.rb +25 -0
  28. data/lib/orb/models/customers/payment_gateway_connection_update_by_external_id_params.rb +68 -0
  29. data/lib/orb/models/customers/payment_gateway_connection_update_params.rb +67 -0
  30. data/lib/orb/models.rb +2 -0
  31. data/lib/orb/resources/account/billing_entities.rb +321 -0
  32. data/lib/orb/resources/account/payment_gateway_connections.rb +71 -0
  33. data/lib/orb/resources/account.rb +26 -0
  34. data/lib/orb/resources/customers/payment_gateway_connections.rb +310 -0
  35. data/lib/orb/resources/customers.rb +22 -0
  36. data/lib/orb/version.rb +1 -1
  37. data/lib/orb.rb +29 -0
  38. data/rbi/orb/client.rbi +3 -0
  39. data/rbi/orb/models/account/billing_entity.rbi +342 -0
  40. data/rbi/orb/models/account/billing_entity_archive_by_external_id_params.rbi +43 -0
  41. data/rbi/orb/models/account/billing_entity_archive_params.rbi +40 -0
  42. data/rbi/orb/models/account/billing_entity_create_params.rbi +208 -0
  43. data/rbi/orb/models/account/billing_entity_fetch_by_external_id_params.rbi +43 -0
  44. data/rbi/orb/models/account/billing_entity_fetch_params.rbi +40 -0
  45. data/rbi/orb/models/account/billing_entity_list_params.rbi +108 -0
  46. data/rbi/orb/models/account/billing_entity_unarchive_by_external_id_params.rbi +43 -0
  47. data/rbi/orb/models/account/billing_entity_unarchive_params.rbi +40 -0
  48. data/rbi/orb/models/account/billing_entity_update_by_external_id_params.rbi +335 -0
  49. data/rbi/orb/models/account/billing_entity_update_params.rbi +331 -0
  50. data/rbi/orb/models/account/payment_gateway_connection.rbi +125 -0
  51. data/rbi/orb/models/account/payment_gateway_connection_fetch_params.rbi +43 -0
  52. data/rbi/orb/models/account/payment_gateway_connection_list_params.rbi +124 -0
  53. data/rbi/orb/models/customers/customer_payment_gateway_connection.rbi +139 -0
  54. data/rbi/orb/models/customers/payment_gateway_connection_create_by_external_id_params.rbi +77 -0
  55. data/rbi/orb/models/customers/payment_gateway_connection_create_params.rbi +77 -0
  56. data/rbi/orb/models/customers/payment_gateway_connection_delete_by_external_id_params.rbi +52 -0
  57. data/rbi/orb/models/customers/payment_gateway_connection_delete_params.rbi +52 -0
  58. data/rbi/orb/models/customers/payment_gateway_connection_list_by_external_id_params.rbi +62 -0
  59. data/rbi/orb/models/customers/payment_gateway_connection_list_by_external_id_response.rbi +47 -0
  60. data/rbi/orb/models/customers/payment_gateway_connection_list_params.rbi +62 -0
  61. data/rbi/orb/models/customers/payment_gateway_connection_list_response.rbi +47 -0
  62. data/rbi/orb/models/customers/payment_gateway_connection_update_by_external_id_params.rbi +120 -0
  63. data/rbi/orb/models/customers/payment_gateway_connection_update_params.rbi +120 -0
  64. data/rbi/orb/models.rbi +2 -0
  65. data/rbi/orb/resources/account/billing_entities.rbi +289 -0
  66. data/rbi/orb/resources/account/payment_gateway_connections.rbi +54 -0
  67. data/rbi/orb/resources/account.rbi +22 -0
  68. data/rbi/orb/resources/customers/payment_gateway_connections.rbi +234 -0
  69. data/rbi/orb/resources/customers.rbi +21 -0
  70. data/sig/orb/client.rbs +2 -0
  71. data/sig/orb/models/account/billing_entity.rbs +155 -0
  72. data/sig/orb/models/account/billing_entity_archive_by_external_id_params.rbs +26 -0
  73. data/sig/orb/models/account/billing_entity_archive_params.rbs +25 -0
  74. data/sig/orb/models/account/billing_entity_create_params.rbs +86 -0
  75. data/sig/orb/models/account/billing_entity_fetch_by_external_id_params.rbs +26 -0
  76. data/sig/orb/models/account/billing_entity_fetch_params.rbs +25 -0
  77. data/sig/orb/models/account/billing_entity_list_params.rbs +51 -0
  78. data/sig/orb/models/account/billing_entity_unarchive_by_external_id_params.rbs +26 -0
  79. data/sig/orb/models/account/billing_entity_unarchive_params.rbs +25 -0
  80. data/sig/orb/models/account/billing_entity_update_by_external_id_params.rbs +125 -0
  81. data/sig/orb/models/account/billing_entity_update_params.rbs +125 -0
  82. data/sig/orb/models/account/payment_gateway_connection.rbs +58 -0
  83. data/sig/orb/models/account/payment_gateway_connection_fetch_params.rbs +26 -0
  84. data/sig/orb/models/account/payment_gateway_connection_list_params.rbs +56 -0
  85. data/sig/orb/models/customers/customer_payment_gateway_connection.rbs +65 -0
  86. data/sig/orb/models/customers/payment_gateway_connection_create_by_external_id_params.rbs +45 -0
  87. data/sig/orb/models/customers/payment_gateway_connection_create_params.rbs +45 -0
  88. data/sig/orb/models/customers/payment_gateway_connection_delete_by_external_id_params.rbs +30 -0
  89. data/sig/orb/models/customers/payment_gateway_connection_delete_params.rbs +30 -0
  90. data/sig/orb/models/customers/payment_gateway_connection_list_by_external_id_params.rbs +38 -0
  91. data/sig/orb/models/customers/payment_gateway_connection_list_by_external_id_response.rbs +27 -0
  92. data/sig/orb/models/customers/payment_gateway_connection_list_params.rbs +38 -0
  93. data/sig/orb/models/customers/payment_gateway_connection_list_response.rbs +27 -0
  94. data/sig/orb/models/customers/payment_gateway_connection_update_by_external_id_params.rbs +53 -0
  95. data/sig/orb/models/customers/payment_gateway_connection_update_params.rbs +53 -0
  96. data/sig/orb/models.rbs +2 -0
  97. data/sig/orb/resources/account/billing_entities.rbs +80 -0
  98. data/sig/orb/resources/account/payment_gateway_connections.rbs +22 -0
  99. data/sig/orb/resources/account.rbs +11 -0
  100. data/sig/orb/resources/customers/payment_gateway_connections.rbs +67 -0
  101. data/sig/orb/resources/customers.rbs +2 -0
  102. metadata +88 -1
@@ -0,0 +1,38 @@
1
+ module Orb
2
+ module Models
3
+ module Customers
4
+ type payment_gateway_connection_list_by_external_id_params =
5
+ {
6
+ external_customer_id: String,
7
+ billing_entity_id: String?,
8
+ payment_gateway_connection_id: String?
9
+ }
10
+ & Orb::Internal::Type::request_parameters
11
+
12
+ class PaymentGatewayConnectionListByExternalIDParams < Orb::Internal::Type::BaseModel
13
+ extend Orb::Internal::Type::RequestParameters::Converter
14
+ include Orb::Internal::Type::RequestParameters
15
+
16
+ attr_accessor external_customer_id: String
17
+
18
+ attr_accessor billing_entity_id: String?
19
+
20
+ attr_accessor payment_gateway_connection_id: String?
21
+
22
+ def initialize: (
23
+ external_customer_id: String,
24
+ ?billing_entity_id: String?,
25
+ ?payment_gateway_connection_id: String?,
26
+ ?request_options: Orb::request_opts
27
+ ) -> void
28
+
29
+ def to_hash: -> {
30
+ external_customer_id: String,
31
+ billing_entity_id: String?,
32
+ payment_gateway_connection_id: String?,
33
+ request_options: Orb::RequestOptions
34
+ }
35
+ end
36
+ end
37
+ end
38
+ end
@@ -0,0 +1,27 @@
1
+ module Orb
2
+ module Models
3
+ module Customers
4
+ type payment_gateway_connection_list_by_external_id_response =
5
+ {
6
+ customer_id: String,
7
+ payment_gateway_connections: ::Array[Orb::Customers::CustomerPaymentGatewayConnection]
8
+ }
9
+
10
+ class PaymentGatewayConnectionListByExternalIDResponse < Orb::Internal::Type::BaseModel
11
+ attr_accessor customer_id: String
12
+
13
+ attr_accessor payment_gateway_connections: ::Array[Orb::Customers::CustomerPaymentGatewayConnection]
14
+
15
+ def initialize: (
16
+ customer_id: String,
17
+ payment_gateway_connections: ::Array[Orb::Customers::CustomerPaymentGatewayConnection]
18
+ ) -> void
19
+
20
+ def to_hash: -> {
21
+ customer_id: String,
22
+ payment_gateway_connections: ::Array[Orb::Customers::CustomerPaymentGatewayConnection]
23
+ }
24
+ end
25
+ end
26
+ end
27
+ end
@@ -0,0 +1,38 @@
1
+ module Orb
2
+ module Models
3
+ module Customers
4
+ type payment_gateway_connection_list_params =
5
+ {
6
+ customer_id: String,
7
+ billing_entity_id: String?,
8
+ payment_gateway_connection_id: String?
9
+ }
10
+ & Orb::Internal::Type::request_parameters
11
+
12
+ class PaymentGatewayConnectionListParams < Orb::Internal::Type::BaseModel
13
+ extend Orb::Internal::Type::RequestParameters::Converter
14
+ include Orb::Internal::Type::RequestParameters
15
+
16
+ attr_accessor customer_id: String
17
+
18
+ attr_accessor billing_entity_id: String?
19
+
20
+ attr_accessor payment_gateway_connection_id: String?
21
+
22
+ def initialize: (
23
+ customer_id: String,
24
+ ?billing_entity_id: String?,
25
+ ?payment_gateway_connection_id: String?,
26
+ ?request_options: Orb::request_opts
27
+ ) -> void
28
+
29
+ def to_hash: -> {
30
+ customer_id: String,
31
+ billing_entity_id: String?,
32
+ payment_gateway_connection_id: String?,
33
+ request_options: Orb::RequestOptions
34
+ }
35
+ end
36
+ end
37
+ end
38
+ end
@@ -0,0 +1,27 @@
1
+ module Orb
2
+ module Models
3
+ module Customers
4
+ type payment_gateway_connection_list_response =
5
+ {
6
+ customer_id: String,
7
+ payment_gateway_connections: ::Array[Orb::Customers::CustomerPaymentGatewayConnection]
8
+ }
9
+
10
+ class PaymentGatewayConnectionListResponse < Orb::Internal::Type::BaseModel
11
+ attr_accessor customer_id: String
12
+
13
+ attr_accessor payment_gateway_connections: ::Array[Orb::Customers::CustomerPaymentGatewayConnection]
14
+
15
+ def initialize: (
16
+ customer_id: String,
17
+ payment_gateway_connections: ::Array[Orb::Customers::CustomerPaymentGatewayConnection]
18
+ ) -> void
19
+
20
+ def to_hash: -> {
21
+ customer_id: String,
22
+ payment_gateway_connections: ::Array[Orb::Customers::CustomerPaymentGatewayConnection]
23
+ }
24
+ end
25
+ end
26
+ end
27
+ end
@@ -0,0 +1,53 @@
1
+ module Orb
2
+ module Models
3
+ module Customers
4
+ type payment_gateway_connection_update_by_external_id_params =
5
+ {
6
+ external_customer_id: String,
7
+ payment_gateway_connection_id: String,
8
+ is_default: Orb::Models::Customers::PaymentGatewayConnectionUpdateByExternalIDParams::is_default?,
9
+ provider_customer_id: String?
10
+ }
11
+ & Orb::Internal::Type::request_parameters
12
+
13
+ class PaymentGatewayConnectionUpdateByExternalIDParams < Orb::Internal::Type::BaseModel
14
+ extend Orb::Internal::Type::RequestParameters::Converter
15
+ include Orb::Internal::Type::RequestParameters
16
+
17
+ attr_accessor external_customer_id: String
18
+
19
+ attr_accessor payment_gateway_connection_id: String
20
+
21
+ attr_accessor is_default: Orb::Models::Customers::PaymentGatewayConnectionUpdateByExternalIDParams::is_default?
22
+
23
+ attr_accessor provider_customer_id: String?
24
+
25
+ def initialize: (
26
+ external_customer_id: String,
27
+ payment_gateway_connection_id: String,
28
+ ?is_default: Orb::Models::Customers::PaymentGatewayConnectionUpdateByExternalIDParams::is_default?,
29
+ ?provider_customer_id: String?,
30
+ ?request_options: Orb::request_opts
31
+ ) -> void
32
+
33
+ def to_hash: -> {
34
+ external_customer_id: String,
35
+ payment_gateway_connection_id: String,
36
+ is_default: Orb::Models::Customers::PaymentGatewayConnectionUpdateByExternalIDParams::is_default?,
37
+ provider_customer_id: String?,
38
+ request_options: Orb::RequestOptions
39
+ }
40
+
41
+ type is_default = true
42
+
43
+ module IsDefault
44
+ extend Orb::Internal::Type::Enum
45
+
46
+ TRUE: true
47
+
48
+ def self?.values: -> ::Array[Orb::Models::Customers::PaymentGatewayConnectionUpdateByExternalIDParams::is_default]
49
+ end
50
+ end
51
+ end
52
+ end
53
+ end
@@ -0,0 +1,53 @@
1
+ module Orb
2
+ module Models
3
+ module Customers
4
+ type payment_gateway_connection_update_params =
5
+ {
6
+ customer_id: String,
7
+ payment_gateway_connection_id: String,
8
+ is_default: Orb::Models::Customers::PaymentGatewayConnectionUpdateParams::is_default?,
9
+ provider_customer_id: String?
10
+ }
11
+ & Orb::Internal::Type::request_parameters
12
+
13
+ class PaymentGatewayConnectionUpdateParams < Orb::Internal::Type::BaseModel
14
+ extend Orb::Internal::Type::RequestParameters::Converter
15
+ include Orb::Internal::Type::RequestParameters
16
+
17
+ attr_accessor customer_id: String
18
+
19
+ attr_accessor payment_gateway_connection_id: String
20
+
21
+ attr_accessor is_default: Orb::Models::Customers::PaymentGatewayConnectionUpdateParams::is_default?
22
+
23
+ attr_accessor provider_customer_id: String?
24
+
25
+ def initialize: (
26
+ customer_id: String,
27
+ payment_gateway_connection_id: String,
28
+ ?is_default: Orb::Models::Customers::PaymentGatewayConnectionUpdateParams::is_default?,
29
+ ?provider_customer_id: String?,
30
+ ?request_options: Orb::request_opts
31
+ ) -> void
32
+
33
+ def to_hash: -> {
34
+ customer_id: String,
35
+ payment_gateway_connection_id: String,
36
+ is_default: Orb::Models::Customers::PaymentGatewayConnectionUpdateParams::is_default?,
37
+ provider_customer_id: String?,
38
+ request_options: Orb::RequestOptions
39
+ }
40
+
41
+ type is_default = true
42
+
43
+ module IsDefault
44
+ extend Orb::Internal::Type::Enum
45
+
46
+ TRUE: true
47
+
48
+ def self?.values: -> ::Array[Orb::Models::Customers::PaymentGatewayConnectionUpdateParams::is_default]
49
+ end
50
+ end
51
+ end
52
+ end
53
+ end
data/sig/orb/models.rbs CHANGED
@@ -1,4 +1,6 @@
1
1
  module Orb
2
+ module Account = Orb::Models::Account
3
+
2
4
  class AccountingProviderConfig = Orb::Models::AccountingProviderConfig
3
5
 
4
6
  class Address = Orb::Models::Address
@@ -0,0 +1,80 @@
1
+ module Orb
2
+ module Resources
3
+ class Account
4
+ class BillingEntities
5
+ def create: (
6
+ address: Orb::AddressInput,
7
+ legal_name: String,
8
+ name: String,
9
+ ?external_billing_entity_id: String?,
10
+ ?invoice_settings: Orb::Account::BillingEntityCreateParams::InvoiceSettings?,
11
+ ?tax_registrations: ::Array[Orb::Account::BillingEntityCreateParams::TaxRegistration],
12
+ ?request_options: Orb::request_opts
13
+ ) -> Orb::Account::BillingEntity
14
+
15
+ def update: (
16
+ String billing_entity_id,
17
+ ?address: Orb::AddressInput?,
18
+ ?default_payment_gateway_connection_id: String?,
19
+ ?invoice_settings: Orb::Account::BillingEntityUpdateParams::InvoiceSettings?,
20
+ ?legal_name: String?,
21
+ ?name: String?,
22
+ ?payment_gateway_connections: ::Array[Orb::Account::BillingEntityUpdateParams::PaymentGatewayConnection]?,
23
+ ?tax_registrations: ::Array[Orb::Account::BillingEntityUpdateParams::TaxRegistration]?,
24
+ ?request_options: Orb::request_opts
25
+ ) -> Orb::Account::BillingEntity
26
+
27
+ def list: (
28
+ ?cursor: String?,
29
+ ?limit: Integer,
30
+ ?status: Orb::Models::Account::BillingEntityListParams::status?,
31
+ ?request_options: Orb::request_opts
32
+ ) -> Orb::Internal::Page[Orb::Account::BillingEntity]
33
+
34
+ def archive: (
35
+ String billing_entity_id,
36
+ ?request_options: Orb::request_opts
37
+ ) -> Orb::Account::BillingEntity
38
+
39
+ def archive_by_external_id: (
40
+ String external_billing_entity_id,
41
+ ?request_options: Orb::request_opts
42
+ ) -> Orb::Account::BillingEntity
43
+
44
+ def fetch: (
45
+ String billing_entity_id,
46
+ ?request_options: Orb::request_opts
47
+ ) -> Orb::Account::BillingEntity
48
+
49
+ def fetch_by_external_id: (
50
+ String external_billing_entity_id,
51
+ ?request_options: Orb::request_opts
52
+ ) -> Orb::Account::BillingEntity
53
+
54
+ def unarchive: (
55
+ String billing_entity_id,
56
+ ?request_options: Orb::request_opts
57
+ ) -> Orb::Account::BillingEntity
58
+
59
+ def unarchive_by_external_id: (
60
+ String external_billing_entity_id,
61
+ ?request_options: Orb::request_opts
62
+ ) -> Orb::Account::BillingEntity
63
+
64
+ def update_by_external_id: (
65
+ String external_billing_entity_id,
66
+ ?address: Orb::AddressInput?,
67
+ ?default_payment_gateway_connection_id: String?,
68
+ ?invoice_settings: Orb::Account::BillingEntityUpdateByExternalIDParams::InvoiceSettings?,
69
+ ?legal_name: String?,
70
+ ?name: String?,
71
+ ?payment_gateway_connections: ::Array[Orb::Account::BillingEntityUpdateByExternalIDParams::PaymentGatewayConnection]?,
72
+ ?tax_registrations: ::Array[Orb::Account::BillingEntityUpdateByExternalIDParams::TaxRegistration]?,
73
+ ?request_options: Orb::request_opts
74
+ ) -> Orb::Account::BillingEntity
75
+
76
+ def initialize: (client: Orb::Client) -> void
77
+ end
78
+ end
79
+ end
80
+ end
@@ -0,0 +1,22 @@
1
+ module Orb
2
+ module Resources
3
+ class Account
4
+ class PaymentGatewayConnections
5
+ def list: (
6
+ ?billing_entity_id: String?,
7
+ ?cursor: String?,
8
+ ?limit: Integer,
9
+ ?provider_type: Orb::Models::Account::PaymentGatewayConnectionListParams::provider_type?,
10
+ ?request_options: Orb::request_opts
11
+ ) -> Orb::Internal::Page[Orb::Account::PaymentGatewayConnection]
12
+
13
+ def fetch: (
14
+ String payment_gateway_connection_id,
15
+ ?request_options: Orb::request_opts
16
+ ) -> Orb::Account::PaymentGatewayConnection
17
+
18
+ def initialize: (client: Orb::Client) -> void
19
+ end
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,11 @@
1
+ module Orb
2
+ module Resources
3
+ class Account
4
+ attr_reader billing_entities: Orb::Resources::Account::BillingEntities
5
+
6
+ attr_reader payment_gateway_connections: Orb::Resources::Account::PaymentGatewayConnections
7
+
8
+ def initialize: (client: Orb::Client) -> void
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,67 @@
1
+ module Orb
2
+ module Resources
3
+ class Customers
4
+ class PaymentGatewayConnections
5
+ def create: (
6
+ String customer_id,
7
+ payment_gateway_connection_id: String,
8
+ ?is_default: bool,
9
+ ?provider_customer_id: String?,
10
+ ?request_options: Orb::request_opts
11
+ ) -> Orb::Customers::CustomerPaymentGatewayConnection
12
+
13
+ def update: (
14
+ String payment_gateway_connection_id,
15
+ customer_id: String,
16
+ ?is_default: Orb::Models::Customers::PaymentGatewayConnectionUpdateParams::is_default?,
17
+ ?provider_customer_id: String?,
18
+ ?request_options: Orb::request_opts
19
+ ) -> Orb::Customers::CustomerPaymentGatewayConnection
20
+
21
+ def list: (
22
+ String customer_id,
23
+ ?billing_entity_id: String?,
24
+ ?payment_gateway_connection_id: String?,
25
+ ?request_options: Orb::request_opts
26
+ ) -> Orb::Models::Customers::PaymentGatewayConnectionListResponse
27
+
28
+ def delete: (
29
+ String payment_gateway_connection_id,
30
+ customer_id: String,
31
+ ?request_options: Orb::request_opts
32
+ ) -> Orb::Customers::CustomerPaymentGatewayConnection
33
+
34
+ def create_by_external_id: (
35
+ String external_customer_id,
36
+ payment_gateway_connection_id: String,
37
+ ?is_default: bool,
38
+ ?provider_customer_id: String?,
39
+ ?request_options: Orb::request_opts
40
+ ) -> Orb::Customers::CustomerPaymentGatewayConnection
41
+
42
+ def delete_by_external_id: (
43
+ String payment_gateway_connection_id,
44
+ external_customer_id: String,
45
+ ?request_options: Orb::request_opts
46
+ ) -> Orb::Customers::CustomerPaymentGatewayConnection
47
+
48
+ def list_by_external_id: (
49
+ String external_customer_id,
50
+ ?billing_entity_id: String?,
51
+ ?payment_gateway_connection_id: String?,
52
+ ?request_options: Orb::request_opts
53
+ ) -> Orb::Models::Customers::PaymentGatewayConnectionListByExternalIDResponse
54
+
55
+ def update_by_external_id: (
56
+ String payment_gateway_connection_id,
57
+ external_customer_id: String,
58
+ ?is_default: Orb::Models::Customers::PaymentGatewayConnectionUpdateByExternalIDParams::is_default?,
59
+ ?provider_customer_id: String?,
60
+ ?request_options: Orb::request_opts
61
+ ) -> Orb::Customers::CustomerPaymentGatewayConnection
62
+
63
+ def initialize: (client: Orb::Client) -> void
64
+ end
65
+ end
66
+ end
67
+ end
@@ -7,6 +7,8 @@ module Orb
7
7
 
8
8
  attr_reader balance_transactions: Orb::Resources::Customers::BalanceTransactions
9
9
 
10
+ attr_reader payment_gateway_connections: Orb::Resources::Customers::PaymentGatewayConnections
11
+
10
12
  def create: (
11
13
  email: String,
12
14
  name: String,
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: orb-billing
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.60.0
4
+ version: 1.61.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Orb
@@ -72,6 +72,20 @@ files:
72
72
  - lib/orb/internal/type/unknown.rb
73
73
  - lib/orb/internal/util.rb
74
74
  - lib/orb/models.rb
75
+ - lib/orb/models/account/billing_entity.rb
76
+ - lib/orb/models/account/billing_entity_archive_by_external_id_params.rb
77
+ - lib/orb/models/account/billing_entity_archive_params.rb
78
+ - lib/orb/models/account/billing_entity_create_params.rb
79
+ - lib/orb/models/account/billing_entity_fetch_by_external_id_params.rb
80
+ - lib/orb/models/account/billing_entity_fetch_params.rb
81
+ - lib/orb/models/account/billing_entity_list_params.rb
82
+ - lib/orb/models/account/billing_entity_unarchive_by_external_id_params.rb
83
+ - lib/orb/models/account/billing_entity_unarchive_params.rb
84
+ - lib/orb/models/account/billing_entity_update_by_external_id_params.rb
85
+ - lib/orb/models/account/billing_entity_update_params.rb
86
+ - lib/orb/models/account/payment_gateway_connection.rb
87
+ - lib/orb/models/account/payment_gateway_connection_fetch_params.rb
88
+ - lib/orb/models/account/payment_gateway_connection_list_params.rb
75
89
  - lib/orb/models/accounting_provider_config.rb
76
90
  - lib/orb/models/address.rb
77
91
  - lib/orb/models/address_input.rb
@@ -201,6 +215,17 @@ files:
201
215
  - lib/orb/models/customers/credits/top_up_list_response.rb
202
216
  - lib/orb/models/customers/credits/void_initiated_ledger_entry.rb
203
217
  - lib/orb/models/customers/credits/void_ledger_entry.rb
218
+ - lib/orb/models/customers/customer_payment_gateway_connection.rb
219
+ - lib/orb/models/customers/payment_gateway_connection_create_by_external_id_params.rb
220
+ - lib/orb/models/customers/payment_gateway_connection_create_params.rb
221
+ - lib/orb/models/customers/payment_gateway_connection_delete_by_external_id_params.rb
222
+ - lib/orb/models/customers/payment_gateway_connection_delete_params.rb
223
+ - lib/orb/models/customers/payment_gateway_connection_list_by_external_id_params.rb
224
+ - lib/orb/models/customers/payment_gateway_connection_list_by_external_id_response.rb
225
+ - lib/orb/models/customers/payment_gateway_connection_list_params.rb
226
+ - lib/orb/models/customers/payment_gateway_connection_list_response.rb
227
+ - lib/orb/models/customers/payment_gateway_connection_update_by_external_id_params.rb
228
+ - lib/orb/models/customers/payment_gateway_connection_update_params.rb
204
229
  - lib/orb/models/data_exports_transfer_error_webhook_event.rb
205
230
  - lib/orb/models/data_exports_transfer_success_webhook_event.rb
206
231
  - lib/orb/models/dimensional_price_configuration.rb
@@ -674,6 +699,9 @@ files:
674
699
  - lib/orb/models/webhooks/transaction_accounting_sync_succeeded_standard_webhook_event.rb
675
700
  - lib/orb/models/webhooks/unwrap_standard_webhook_event.rb
676
701
  - lib/orb/request_options.rb
702
+ - lib/orb/resources/account.rb
703
+ - lib/orb/resources/account/billing_entities.rb
704
+ - lib/orb/resources/account/payment_gateway_connections.rb
677
705
  - lib/orb/resources/alerts.rb
678
706
  - lib/orb/resources/coupons.rb
679
707
  - lib/orb/resources/coupons/subscriptions.rb
@@ -685,6 +713,7 @@ files:
685
713
  - lib/orb/resources/customers/credits.rb
686
714
  - lib/orb/resources/customers/credits/ledger.rb
687
715
  - lib/orb/resources/customers/credits/top_ups.rb
716
+ - lib/orb/resources/customers/payment_gateway_connections.rb
688
717
  - lib/orb/resources/dimensional_price_groups.rb
689
718
  - lib/orb/resources/dimensional_price_groups/external_dimensional_price_group_id.rb
690
719
  - lib/orb/resources/dimensional_price_groups/prices.rb
@@ -736,6 +765,20 @@ files:
736
765
  - rbi/orb/internal/type/unknown.rbi
737
766
  - rbi/orb/internal/util.rbi
738
767
  - rbi/orb/models.rbi
768
+ - rbi/orb/models/account/billing_entity.rbi
769
+ - rbi/orb/models/account/billing_entity_archive_by_external_id_params.rbi
770
+ - rbi/orb/models/account/billing_entity_archive_params.rbi
771
+ - rbi/orb/models/account/billing_entity_create_params.rbi
772
+ - rbi/orb/models/account/billing_entity_fetch_by_external_id_params.rbi
773
+ - rbi/orb/models/account/billing_entity_fetch_params.rbi
774
+ - rbi/orb/models/account/billing_entity_list_params.rbi
775
+ - rbi/orb/models/account/billing_entity_unarchive_by_external_id_params.rbi
776
+ - rbi/orb/models/account/billing_entity_unarchive_params.rbi
777
+ - rbi/orb/models/account/billing_entity_update_by_external_id_params.rbi
778
+ - rbi/orb/models/account/billing_entity_update_params.rbi
779
+ - rbi/orb/models/account/payment_gateway_connection.rbi
780
+ - rbi/orb/models/account/payment_gateway_connection_fetch_params.rbi
781
+ - rbi/orb/models/account/payment_gateway_connection_list_params.rbi
739
782
  - rbi/orb/models/accounting_provider_config.rbi
740
783
  - rbi/orb/models/address.rbi
741
784
  - rbi/orb/models/address_input.rbi
@@ -865,6 +908,17 @@ files:
865
908
  - rbi/orb/models/customers/credits/top_up_list_response.rbi
866
909
  - rbi/orb/models/customers/credits/void_initiated_ledger_entry.rbi
867
910
  - rbi/orb/models/customers/credits/void_ledger_entry.rbi
911
+ - rbi/orb/models/customers/customer_payment_gateway_connection.rbi
912
+ - rbi/orb/models/customers/payment_gateway_connection_create_by_external_id_params.rbi
913
+ - rbi/orb/models/customers/payment_gateway_connection_create_params.rbi
914
+ - rbi/orb/models/customers/payment_gateway_connection_delete_by_external_id_params.rbi
915
+ - rbi/orb/models/customers/payment_gateway_connection_delete_params.rbi
916
+ - rbi/orb/models/customers/payment_gateway_connection_list_by_external_id_params.rbi
917
+ - rbi/orb/models/customers/payment_gateway_connection_list_by_external_id_response.rbi
918
+ - rbi/orb/models/customers/payment_gateway_connection_list_params.rbi
919
+ - rbi/orb/models/customers/payment_gateway_connection_list_response.rbi
920
+ - rbi/orb/models/customers/payment_gateway_connection_update_by_external_id_params.rbi
921
+ - rbi/orb/models/customers/payment_gateway_connection_update_params.rbi
868
922
  - rbi/orb/models/data_exports_transfer_error_webhook_event.rbi
869
923
  - rbi/orb/models/data_exports_transfer_success_webhook_event.rbi
870
924
  - rbi/orb/models/dimensional_price_configuration.rbi
@@ -1338,6 +1392,9 @@ files:
1338
1392
  - rbi/orb/models/webhooks/transaction_accounting_sync_succeeded_standard_webhook_event.rbi
1339
1393
  - rbi/orb/models/webhooks/unwrap_standard_webhook_event.rbi
1340
1394
  - rbi/orb/request_options.rbi
1395
+ - rbi/orb/resources/account.rbi
1396
+ - rbi/orb/resources/account/billing_entities.rbi
1397
+ - rbi/orb/resources/account/payment_gateway_connections.rbi
1341
1398
  - rbi/orb/resources/alerts.rbi
1342
1399
  - rbi/orb/resources/coupons.rbi
1343
1400
  - rbi/orb/resources/coupons/subscriptions.rbi
@@ -1349,6 +1406,7 @@ files:
1349
1406
  - rbi/orb/resources/customers/credits.rbi
1350
1407
  - rbi/orb/resources/customers/credits/ledger.rbi
1351
1408
  - rbi/orb/resources/customers/credits/top_ups.rbi
1409
+ - rbi/orb/resources/customers/payment_gateway_connections.rbi
1352
1410
  - rbi/orb/resources/dimensional_price_groups.rbi
1353
1411
  - rbi/orb/resources/dimensional_price_groups/external_dimensional_price_group_id.rbi
1354
1412
  - rbi/orb/resources/dimensional_price_groups/prices.rbi
@@ -1399,6 +1457,20 @@ files:
1399
1457
  - sig/orb/internal/type/unknown.rbs
1400
1458
  - sig/orb/internal/util.rbs
1401
1459
  - sig/orb/models.rbs
1460
+ - sig/orb/models/account/billing_entity.rbs
1461
+ - sig/orb/models/account/billing_entity_archive_by_external_id_params.rbs
1462
+ - sig/orb/models/account/billing_entity_archive_params.rbs
1463
+ - sig/orb/models/account/billing_entity_create_params.rbs
1464
+ - sig/orb/models/account/billing_entity_fetch_by_external_id_params.rbs
1465
+ - sig/orb/models/account/billing_entity_fetch_params.rbs
1466
+ - sig/orb/models/account/billing_entity_list_params.rbs
1467
+ - sig/orb/models/account/billing_entity_unarchive_by_external_id_params.rbs
1468
+ - sig/orb/models/account/billing_entity_unarchive_params.rbs
1469
+ - sig/orb/models/account/billing_entity_update_by_external_id_params.rbs
1470
+ - sig/orb/models/account/billing_entity_update_params.rbs
1471
+ - sig/orb/models/account/payment_gateway_connection.rbs
1472
+ - sig/orb/models/account/payment_gateway_connection_fetch_params.rbs
1473
+ - sig/orb/models/account/payment_gateway_connection_list_params.rbs
1402
1474
  - sig/orb/models/accounting_provider_config.rbs
1403
1475
  - sig/orb/models/address.rbs
1404
1476
  - sig/orb/models/address_input.rbs
@@ -1528,6 +1600,17 @@ files:
1528
1600
  - sig/orb/models/customers/credits/top_up_list_response.rbs
1529
1601
  - sig/orb/models/customers/credits/void_initiated_ledger_entry.rbs
1530
1602
  - sig/orb/models/customers/credits/void_ledger_entry.rbs
1603
+ - sig/orb/models/customers/customer_payment_gateway_connection.rbs
1604
+ - sig/orb/models/customers/payment_gateway_connection_create_by_external_id_params.rbs
1605
+ - sig/orb/models/customers/payment_gateway_connection_create_params.rbs
1606
+ - sig/orb/models/customers/payment_gateway_connection_delete_by_external_id_params.rbs
1607
+ - sig/orb/models/customers/payment_gateway_connection_delete_params.rbs
1608
+ - sig/orb/models/customers/payment_gateway_connection_list_by_external_id_params.rbs
1609
+ - sig/orb/models/customers/payment_gateway_connection_list_by_external_id_response.rbs
1610
+ - sig/orb/models/customers/payment_gateway_connection_list_params.rbs
1611
+ - sig/orb/models/customers/payment_gateway_connection_list_response.rbs
1612
+ - sig/orb/models/customers/payment_gateway_connection_update_by_external_id_params.rbs
1613
+ - sig/orb/models/customers/payment_gateway_connection_update_params.rbs
1531
1614
  - sig/orb/models/data_exports_transfer_error_webhook_event.rbs
1532
1615
  - sig/orb/models/data_exports_transfer_success_webhook_event.rbs
1533
1616
  - sig/orb/models/dimensional_price_configuration.rbs
@@ -2001,6 +2084,9 @@ files:
2001
2084
  - sig/orb/models/webhooks/transaction_accounting_sync_succeeded_standard_webhook_event.rbs
2002
2085
  - sig/orb/models/webhooks/unwrap_standard_webhook_event.rbs
2003
2086
  - sig/orb/request_options.rbs
2087
+ - sig/orb/resources/account.rbs
2088
+ - sig/orb/resources/account/billing_entities.rbs
2089
+ - sig/orb/resources/account/payment_gateway_connections.rbs
2004
2090
  - sig/orb/resources/alerts.rbs
2005
2091
  - sig/orb/resources/coupons.rbs
2006
2092
  - sig/orb/resources/coupons/subscriptions.rbs
@@ -2012,6 +2098,7 @@ files:
2012
2098
  - sig/orb/resources/customers/credits.rbs
2013
2099
  - sig/orb/resources/customers/credits/ledger.rbs
2014
2100
  - sig/orb/resources/customers/credits/top_ups.rbs
2101
+ - sig/orb/resources/customers/payment_gateway_connections.rbs
2015
2102
  - sig/orb/resources/dimensional_price_groups.rbs
2016
2103
  - sig/orb/resources/dimensional_price_groups/external_dimensional_price_group_id.rbs
2017
2104
  - sig/orb/resources/dimensional_price_groups/prices.rbs