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,139 @@
1
+ # typed: strong
2
+
3
+ module Orb
4
+ module Models
5
+ CustomerPaymentGatewayConnection =
6
+ Customers::CustomerPaymentGatewayConnection
7
+
8
+ module Customers
9
+ class CustomerPaymentGatewayConnection < Orb::Internal::Type::BaseModel
10
+ OrHash =
11
+ T.type_alias do
12
+ T.any(
13
+ Orb::Customers::CustomerPaymentGatewayConnection,
14
+ Orb::Internal::AnyHash
15
+ )
16
+ end
17
+
18
+ # The ID of the billing entity that collects payments through the connection.
19
+ sig { returns(String) }
20
+ attr_accessor :billing_entity_id
21
+
22
+ # The time the mapping was created.
23
+ sig { returns(Time) }
24
+ attr_accessor :created_at
25
+
26
+ # The ID of the account in the external payment provider.
27
+ sig { returns(T.nilable(String)) }
28
+ attr_accessor :external_account_id
29
+
30
+ # Whether Orb charges the customer for that billing entity's invoices through this
31
+ # mapping. On the default billing entity, it is the mapping the customer's
32
+ # `payment_provider_id` reflects.
33
+ sig { returns(T::Boolean) }
34
+ attr_accessor :is_default
35
+
36
+ # The ID of the payment gateway connection the customer is mapped to.
37
+ sig { returns(String) }
38
+ attr_accessor :payment_gateway_connection_id
39
+
40
+ # The ID of the customer in the external payment provider, or null if none is set.
41
+ sig { returns(T.nilable(String)) }
42
+ attr_accessor :provider_customer_id
43
+
44
+ # The external payment provider of the connection.
45
+ sig do
46
+ returns(
47
+ Orb::Customers::CustomerPaymentGatewayConnection::ProviderType::TaggedSymbol
48
+ )
49
+ end
50
+ attr_accessor :provider_type
51
+
52
+ # A customer's mapping to one payment gateway connection.
53
+ sig do
54
+ params(
55
+ billing_entity_id: String,
56
+ created_at: Time,
57
+ external_account_id: T.nilable(String),
58
+ is_default: T::Boolean,
59
+ payment_gateway_connection_id: String,
60
+ provider_customer_id: T.nilable(String),
61
+ provider_type:
62
+ Orb::Customers::CustomerPaymentGatewayConnection::ProviderType::OrSymbol
63
+ ).returns(T.attached_class)
64
+ end
65
+ def self.new(
66
+ # The ID of the billing entity that collects payments through the connection.
67
+ billing_entity_id:,
68
+ # The time the mapping was created.
69
+ created_at:,
70
+ # The ID of the account in the external payment provider.
71
+ external_account_id:,
72
+ # Whether Orb charges the customer for that billing entity's invoices through this
73
+ # mapping. On the default billing entity, it is the mapping the customer's
74
+ # `payment_provider_id` reflects.
75
+ is_default:,
76
+ # The ID of the payment gateway connection the customer is mapped to.
77
+ payment_gateway_connection_id:,
78
+ # The ID of the customer in the external payment provider, or null if none is set.
79
+ provider_customer_id:,
80
+ # The external payment provider of the connection.
81
+ provider_type:
82
+ )
83
+ end
84
+
85
+ sig do
86
+ override.returns(
87
+ {
88
+ billing_entity_id: String,
89
+ created_at: Time,
90
+ external_account_id: T.nilable(String),
91
+ is_default: T::Boolean,
92
+ payment_gateway_connection_id: String,
93
+ provider_customer_id: T.nilable(String),
94
+ provider_type:
95
+ Orb::Customers::CustomerPaymentGatewayConnection::ProviderType::TaggedSymbol
96
+ }
97
+ )
98
+ end
99
+ def to_hash
100
+ end
101
+
102
+ # The external payment provider of the connection.
103
+ module ProviderType
104
+ extend Orb::Internal::Type::Enum
105
+
106
+ TaggedSymbol =
107
+ T.type_alias do
108
+ T.all(
109
+ Symbol,
110
+ Orb::Customers::CustomerPaymentGatewayConnection::ProviderType
111
+ )
112
+ end
113
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
114
+
115
+ STRIPE =
116
+ T.let(
117
+ :stripe,
118
+ Orb::Customers::CustomerPaymentGatewayConnection::ProviderType::TaggedSymbol
119
+ )
120
+ ADYEN =
121
+ T.let(
122
+ :adyen,
123
+ Orb::Customers::CustomerPaymentGatewayConnection::ProviderType::TaggedSymbol
124
+ )
125
+
126
+ sig do
127
+ override.returns(
128
+ T::Array[
129
+ Orb::Customers::CustomerPaymentGatewayConnection::ProviderType::TaggedSymbol
130
+ ]
131
+ )
132
+ end
133
+ def self.values
134
+ end
135
+ end
136
+ end
137
+ end
138
+ end
139
+ end
@@ -0,0 +1,77 @@
1
+ # typed: strong
2
+
3
+ module Orb
4
+ module Models
5
+ module Customers
6
+ class PaymentGatewayConnectionCreateByExternalIDParams < Orb::Internal::Type::BaseModel
7
+ extend Orb::Internal::Type::RequestParameters::Converter
8
+ include Orb::Internal::Type::RequestParameters
9
+
10
+ OrHash =
11
+ T.type_alias do
12
+ T.any(
13
+ Orb::Customers::PaymentGatewayConnectionCreateByExternalIDParams,
14
+ Orb::Internal::AnyHash
15
+ )
16
+ end
17
+
18
+ sig { returns(String) }
19
+ attr_accessor :external_customer_id
20
+
21
+ # The ID of the payment gateway connection to map the customer to.
22
+ sig { returns(String) }
23
+ attr_accessor :payment_gateway_connection_id
24
+
25
+ # Whether Orb charges the customer for the billing entity's invoices through this
26
+ # mapping. The customer's first mapping for a billing entity is the default
27
+ # regardless.
28
+ sig { returns(T.nilable(T::Boolean)) }
29
+ attr_reader :is_default
30
+
31
+ sig { params(is_default: T::Boolean).void }
32
+ attr_writer :is_default
33
+
34
+ # The ID of the customer in the external payment provider.
35
+ sig { returns(T.nilable(String)) }
36
+ attr_accessor :provider_customer_id
37
+
38
+ sig do
39
+ params(
40
+ external_customer_id: String,
41
+ payment_gateway_connection_id: String,
42
+ is_default: T::Boolean,
43
+ provider_customer_id: T.nilable(String),
44
+ request_options: Orb::RequestOptions::OrHash
45
+ ).returns(T.attached_class)
46
+ end
47
+ def self.new(
48
+ external_customer_id:,
49
+ # The ID of the payment gateway connection to map the customer to.
50
+ payment_gateway_connection_id:,
51
+ # Whether Orb charges the customer for the billing entity's invoices through this
52
+ # mapping. The customer's first mapping for a billing entity is the default
53
+ # regardless.
54
+ is_default: nil,
55
+ # The ID of the customer in the external payment provider.
56
+ provider_customer_id: nil,
57
+ request_options: {}
58
+ )
59
+ end
60
+
61
+ sig do
62
+ override.returns(
63
+ {
64
+ external_customer_id: String,
65
+ payment_gateway_connection_id: String,
66
+ is_default: T::Boolean,
67
+ provider_customer_id: T.nilable(String),
68
+ request_options: Orb::RequestOptions
69
+ }
70
+ )
71
+ end
72
+ def to_hash
73
+ end
74
+ end
75
+ end
76
+ end
77
+ end
@@ -0,0 +1,77 @@
1
+ # typed: strong
2
+
3
+ module Orb
4
+ module Models
5
+ module Customers
6
+ class PaymentGatewayConnectionCreateParams < Orb::Internal::Type::BaseModel
7
+ extend Orb::Internal::Type::RequestParameters::Converter
8
+ include Orb::Internal::Type::RequestParameters
9
+
10
+ OrHash =
11
+ T.type_alias do
12
+ T.any(
13
+ Orb::Customers::PaymentGatewayConnectionCreateParams,
14
+ Orb::Internal::AnyHash
15
+ )
16
+ end
17
+
18
+ sig { returns(String) }
19
+ attr_accessor :customer_id
20
+
21
+ # The ID of the payment gateway connection to map the customer to.
22
+ sig { returns(String) }
23
+ attr_accessor :payment_gateway_connection_id
24
+
25
+ # Whether Orb charges the customer for the billing entity's invoices through this
26
+ # mapping. The customer's first mapping for a billing entity is the default
27
+ # regardless.
28
+ sig { returns(T.nilable(T::Boolean)) }
29
+ attr_reader :is_default
30
+
31
+ sig { params(is_default: T::Boolean).void }
32
+ attr_writer :is_default
33
+
34
+ # The ID of the customer in the external payment provider.
35
+ sig { returns(T.nilable(String)) }
36
+ attr_accessor :provider_customer_id
37
+
38
+ sig do
39
+ params(
40
+ customer_id: String,
41
+ payment_gateway_connection_id: String,
42
+ is_default: T::Boolean,
43
+ provider_customer_id: T.nilable(String),
44
+ request_options: Orb::RequestOptions::OrHash
45
+ ).returns(T.attached_class)
46
+ end
47
+ def self.new(
48
+ customer_id:,
49
+ # The ID of the payment gateway connection to map the customer to.
50
+ payment_gateway_connection_id:,
51
+ # Whether Orb charges the customer for the billing entity's invoices through this
52
+ # mapping. The customer's first mapping for a billing entity is the default
53
+ # regardless.
54
+ is_default: nil,
55
+ # The ID of the customer in the external payment provider.
56
+ provider_customer_id: nil,
57
+ request_options: {}
58
+ )
59
+ end
60
+
61
+ sig do
62
+ override.returns(
63
+ {
64
+ customer_id: String,
65
+ payment_gateway_connection_id: String,
66
+ is_default: T::Boolean,
67
+ provider_customer_id: T.nilable(String),
68
+ request_options: Orb::RequestOptions
69
+ }
70
+ )
71
+ end
72
+ def to_hash
73
+ end
74
+ end
75
+ end
76
+ end
77
+ end
@@ -0,0 +1,52 @@
1
+ # typed: strong
2
+
3
+ module Orb
4
+ module Models
5
+ module Customers
6
+ class PaymentGatewayConnectionDeleteByExternalIDParams < Orb::Internal::Type::BaseModel
7
+ extend Orb::Internal::Type::RequestParameters::Converter
8
+ include Orb::Internal::Type::RequestParameters
9
+
10
+ OrHash =
11
+ T.type_alias do
12
+ T.any(
13
+ Orb::Customers::PaymentGatewayConnectionDeleteByExternalIDParams,
14
+ Orb::Internal::AnyHash
15
+ )
16
+ end
17
+
18
+ sig { returns(String) }
19
+ attr_accessor :external_customer_id
20
+
21
+ sig { returns(String) }
22
+ attr_accessor :payment_gateway_connection_id
23
+
24
+ sig do
25
+ params(
26
+ external_customer_id: String,
27
+ payment_gateway_connection_id: String,
28
+ request_options: Orb::RequestOptions::OrHash
29
+ ).returns(T.attached_class)
30
+ end
31
+ def self.new(
32
+ external_customer_id:,
33
+ payment_gateway_connection_id:,
34
+ request_options: {}
35
+ )
36
+ end
37
+
38
+ sig do
39
+ override.returns(
40
+ {
41
+ external_customer_id: String,
42
+ payment_gateway_connection_id: String,
43
+ request_options: Orb::RequestOptions
44
+ }
45
+ )
46
+ end
47
+ def to_hash
48
+ end
49
+ end
50
+ end
51
+ end
52
+ end
@@ -0,0 +1,52 @@
1
+ # typed: strong
2
+
3
+ module Orb
4
+ module Models
5
+ module Customers
6
+ class PaymentGatewayConnectionDeleteParams < Orb::Internal::Type::BaseModel
7
+ extend Orb::Internal::Type::RequestParameters::Converter
8
+ include Orb::Internal::Type::RequestParameters
9
+
10
+ OrHash =
11
+ T.type_alias do
12
+ T.any(
13
+ Orb::Customers::PaymentGatewayConnectionDeleteParams,
14
+ Orb::Internal::AnyHash
15
+ )
16
+ end
17
+
18
+ sig { returns(String) }
19
+ attr_accessor :customer_id
20
+
21
+ sig { returns(String) }
22
+ attr_accessor :payment_gateway_connection_id
23
+
24
+ sig do
25
+ params(
26
+ customer_id: String,
27
+ payment_gateway_connection_id: String,
28
+ request_options: Orb::RequestOptions::OrHash
29
+ ).returns(T.attached_class)
30
+ end
31
+ def self.new(
32
+ customer_id:,
33
+ payment_gateway_connection_id:,
34
+ request_options: {}
35
+ )
36
+ end
37
+
38
+ sig do
39
+ override.returns(
40
+ {
41
+ customer_id: String,
42
+ payment_gateway_connection_id: String,
43
+ request_options: Orb::RequestOptions
44
+ }
45
+ )
46
+ end
47
+ def to_hash
48
+ end
49
+ end
50
+ end
51
+ end
52
+ end
@@ -0,0 +1,62 @@
1
+ # typed: strong
2
+
3
+ module Orb
4
+ module Models
5
+ module Customers
6
+ class PaymentGatewayConnectionListByExternalIDParams < Orb::Internal::Type::BaseModel
7
+ extend Orb::Internal::Type::RequestParameters::Converter
8
+ include Orb::Internal::Type::RequestParameters
9
+
10
+ OrHash =
11
+ T.type_alias do
12
+ T.any(
13
+ Orb::Customers::PaymentGatewayConnectionListByExternalIDParams,
14
+ Orb::Internal::AnyHash
15
+ )
16
+ end
17
+
18
+ sig { returns(String) }
19
+ attr_accessor :external_customer_id
20
+
21
+ # Only return mappings to this billing entity's connections.
22
+ sig { returns(T.nilable(String)) }
23
+ attr_accessor :billing_entity_id
24
+
25
+ # Only return the mapping to this connection.
26
+ sig { returns(T.nilable(String)) }
27
+ attr_accessor :payment_gateway_connection_id
28
+
29
+ sig do
30
+ params(
31
+ external_customer_id: String,
32
+ billing_entity_id: T.nilable(String),
33
+ payment_gateway_connection_id: T.nilable(String),
34
+ request_options: Orb::RequestOptions::OrHash
35
+ ).returns(T.attached_class)
36
+ end
37
+ def self.new(
38
+ external_customer_id:,
39
+ # Only return mappings to this billing entity's connections.
40
+ billing_entity_id: nil,
41
+ # Only return the mapping to this connection.
42
+ payment_gateway_connection_id: nil,
43
+ request_options: {}
44
+ )
45
+ end
46
+
47
+ sig do
48
+ override.returns(
49
+ {
50
+ external_customer_id: String,
51
+ billing_entity_id: T.nilable(String),
52
+ payment_gateway_connection_id: T.nilable(String),
53
+ request_options: Orb::RequestOptions
54
+ }
55
+ )
56
+ end
57
+ def to_hash
58
+ end
59
+ end
60
+ end
61
+ end
62
+ end
@@ -0,0 +1,47 @@
1
+ # typed: strong
2
+
3
+ module Orb
4
+ module Models
5
+ module Customers
6
+ class PaymentGatewayConnectionListByExternalIDResponse < Orb::Internal::Type::BaseModel
7
+ OrHash =
8
+ T.type_alias do
9
+ T.any(
10
+ Orb::Models::Customers::PaymentGatewayConnectionListByExternalIDResponse,
11
+ Orb::Internal::AnyHash
12
+ )
13
+ end
14
+
15
+ sig { returns(String) }
16
+ attr_accessor :customer_id
17
+
18
+ sig do
19
+ returns(T::Array[Orb::Customers::CustomerPaymentGatewayConnection])
20
+ end
21
+ attr_accessor :payment_gateway_connections
22
+
23
+ sig do
24
+ params(
25
+ customer_id: String,
26
+ payment_gateway_connections:
27
+ T::Array[Orb::Customers::CustomerPaymentGatewayConnection::OrHash]
28
+ ).returns(T.attached_class)
29
+ end
30
+ def self.new(customer_id:, payment_gateway_connections:)
31
+ end
32
+
33
+ sig do
34
+ override.returns(
35
+ {
36
+ customer_id: String,
37
+ payment_gateway_connections:
38
+ T::Array[Orb::Customers::CustomerPaymentGatewayConnection]
39
+ }
40
+ )
41
+ end
42
+ def to_hash
43
+ end
44
+ end
45
+ end
46
+ end
47
+ end
@@ -0,0 +1,62 @@
1
+ # typed: strong
2
+
3
+ module Orb
4
+ module Models
5
+ module Customers
6
+ class PaymentGatewayConnectionListParams < Orb::Internal::Type::BaseModel
7
+ extend Orb::Internal::Type::RequestParameters::Converter
8
+ include Orb::Internal::Type::RequestParameters
9
+
10
+ OrHash =
11
+ T.type_alias do
12
+ T.any(
13
+ Orb::Customers::PaymentGatewayConnectionListParams,
14
+ Orb::Internal::AnyHash
15
+ )
16
+ end
17
+
18
+ sig { returns(String) }
19
+ attr_accessor :customer_id
20
+
21
+ # Only return mappings to this billing entity's connections.
22
+ sig { returns(T.nilable(String)) }
23
+ attr_accessor :billing_entity_id
24
+
25
+ # Only return the mapping to this connection.
26
+ sig { returns(T.nilable(String)) }
27
+ attr_accessor :payment_gateway_connection_id
28
+
29
+ sig do
30
+ params(
31
+ customer_id: String,
32
+ billing_entity_id: T.nilable(String),
33
+ payment_gateway_connection_id: T.nilable(String),
34
+ request_options: Orb::RequestOptions::OrHash
35
+ ).returns(T.attached_class)
36
+ end
37
+ def self.new(
38
+ customer_id:,
39
+ # Only return mappings to this billing entity's connections.
40
+ billing_entity_id: nil,
41
+ # Only return the mapping to this connection.
42
+ payment_gateway_connection_id: nil,
43
+ request_options: {}
44
+ )
45
+ end
46
+
47
+ sig do
48
+ override.returns(
49
+ {
50
+ customer_id: String,
51
+ billing_entity_id: T.nilable(String),
52
+ payment_gateway_connection_id: T.nilable(String),
53
+ request_options: Orb::RequestOptions
54
+ }
55
+ )
56
+ end
57
+ def to_hash
58
+ end
59
+ end
60
+ end
61
+ end
62
+ end
@@ -0,0 +1,47 @@
1
+ # typed: strong
2
+
3
+ module Orb
4
+ module Models
5
+ module Customers
6
+ class PaymentGatewayConnectionListResponse < Orb::Internal::Type::BaseModel
7
+ OrHash =
8
+ T.type_alias do
9
+ T.any(
10
+ Orb::Models::Customers::PaymentGatewayConnectionListResponse,
11
+ Orb::Internal::AnyHash
12
+ )
13
+ end
14
+
15
+ sig { returns(String) }
16
+ attr_accessor :customer_id
17
+
18
+ sig do
19
+ returns(T::Array[Orb::Customers::CustomerPaymentGatewayConnection])
20
+ end
21
+ attr_accessor :payment_gateway_connections
22
+
23
+ sig do
24
+ params(
25
+ customer_id: String,
26
+ payment_gateway_connections:
27
+ T::Array[Orb::Customers::CustomerPaymentGatewayConnection::OrHash]
28
+ ).returns(T.attached_class)
29
+ end
30
+ def self.new(customer_id:, payment_gateway_connections:)
31
+ end
32
+
33
+ sig do
34
+ override.returns(
35
+ {
36
+ customer_id: String,
37
+ payment_gateway_connections:
38
+ T::Array[Orb::Customers::CustomerPaymentGatewayConnection]
39
+ }
40
+ )
41
+ end
42
+ def to_hash
43
+ end
44
+ end
45
+ end
46
+ end
47
+ end