lithic 0.10.0 → 0.11.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 (62) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +39 -0
  3. data/README.md +1 -1
  4. data/lib/lithic/internal/util.rb +22 -7
  5. data/lib/lithic/models/auth_rules/backtest_stats.rb +9 -1
  6. data/lib/lithic/models/auth_rules/conditional_authorization_action_parameters.rb +15 -0
  7. data/lib/lithic/models/auth_rules/report_stats.rb +46 -81
  8. data/lib/lithic/models/auth_rules/v2_list_results_response.rb +36 -4
  9. data/lib/lithic/models/auth_rules/v2_retrieve_report_response.rb +4 -531
  10. data/lib/lithic/models/card_authorization_approval_request_webhook_event.rb +17 -26
  11. data/lib/lithic/models/card_bulk_order.rb +8 -3
  12. data/lib/lithic/models/card_bulk_order_create_params.rb +8 -3
  13. data/lib/lithic/models/card_convert_physical_params.rb +5 -3
  14. data/lib/lithic/models/card_create_params.rb +5 -3
  15. data/lib/lithic/models/card_reissue_params.rb +5 -3
  16. data/lib/lithic/models/card_renew_params.rb +5 -3
  17. data/lib/lithic/models/financial_account.rb +1 -0
  18. data/lib/lithic/models/financial_account_update_status_params.rb +1 -0
  19. data/lib/lithic/models/financial_accounts/statement.rb +11 -4
  20. data/lib/lithic/models/instance_financial_account_type.rb +1 -0
  21. data/lib/lithic/models/payment_create_params.rb +13 -1
  22. data/lib/lithic/resources/card_bulk_orders.rb +10 -11
  23. data/lib/lithic/version.rb +1 -1
  24. data/rbi/lithic/internal/util.rbi +8 -0
  25. data/rbi/lithic/models/auth_rules/backtest_stats.rbi +11 -3
  26. data/rbi/lithic/models/auth_rules/conditional_authorization_action_parameters.rbi +33 -0
  27. data/rbi/lithic/models/auth_rules/report_stats.rbi +73 -177
  28. data/rbi/lithic/models/auth_rules/v2_list_results_response.rbi +38 -6
  29. data/rbi/lithic/models/auth_rules/v2_retrieve_report_response.rbi +3 -1721
  30. data/rbi/lithic/models/card_authorization_approval_request_webhook_event.rbi +23 -78
  31. data/rbi/lithic/models/card_bulk_order.rbi +21 -3
  32. data/rbi/lithic/models/card_bulk_order_create_params.rbi +21 -3
  33. data/rbi/lithic/models/card_convert_physical_params.rbi +8 -5
  34. data/rbi/lithic/models/card_create_params.rbi +8 -8
  35. data/rbi/lithic/models/card_reissue_params.rbi +8 -8
  36. data/rbi/lithic/models/card_renew_params.rbi +8 -8
  37. data/rbi/lithic/models/financial_account.rbi +5 -0
  38. data/rbi/lithic/models/financial_account_update_status_params.rbi +5 -0
  39. data/rbi/lithic/models/financial_accounts/statement.rbi +15 -6
  40. data/rbi/lithic/models/instance_financial_account_type.rbi +5 -0
  41. data/rbi/lithic/models/payment_create_params.rbi +13 -3
  42. data/rbi/lithic/resources/card_bulk_orders.rbi +11 -11
  43. data/rbi/lithic/resources/cards.rbi +8 -4
  44. data/sig/lithic/internal/util.rbs +4 -0
  45. data/sig/lithic/models/auth_rules/backtest_stats.rbs +8 -3
  46. data/sig/lithic/models/auth_rules/conditional_authorization_action_parameters.rbs +6 -0
  47. data/sig/lithic/models/auth_rules/report_stats.rbs +34 -70
  48. data/sig/lithic/models/auth_rules/v2_list_results_response.rbs +29 -9
  49. data/sig/lithic/models/auth_rules/v2_retrieve_report_response.rbs +4 -667
  50. data/sig/lithic/models/card_authorization_approval_request_webhook_event.rbs +14 -41
  51. data/sig/lithic/models/card_bulk_order.rbs +5 -1
  52. data/sig/lithic/models/card_bulk_order_create_params.rbs +5 -1
  53. data/sig/lithic/models/card_convert_physical_params.rbs +2 -2
  54. data/sig/lithic/models/card_create_params.rbs +2 -2
  55. data/sig/lithic/models/card_reissue_params.rbs +2 -2
  56. data/sig/lithic/models/card_renew_params.rbs +2 -2
  57. data/sig/lithic/models/financial_account.rbs +2 -0
  58. data/sig/lithic/models/financial_account_update_status_params.rbs +2 -0
  59. data/sig/lithic/models/financial_accounts/statement.rbs +16 -7
  60. data/sig/lithic/models/instance_financial_account_type.rbs +2 -0
  61. data/sig/lithic/models/payment_create_params.rbs +8 -3
  62. metadata +2 -2
@@ -944,33 +944,16 @@ module Lithic
944
944
  end
945
945
 
946
946
  # Globally unique identifier for the card.
947
- sig { returns(T.nilable(String)) }
948
- attr_reader :token
949
-
950
- sig { params(token: String).void }
951
- attr_writer :token
952
-
953
- # Hostname of card’s locked merchant (will be empty if not applicable)
954
- sig { returns(T.nilable(String)) }
955
- attr_reader :hostname
956
-
957
- sig { params(hostname: String).void }
958
- attr_writer :hostname
947
+ sig { returns(String) }
948
+ attr_accessor :token
959
949
 
960
950
  # Last four digits of the card number
961
- sig { returns(T.nilable(String)) }
962
- attr_reader :last_four
963
-
964
- sig { params(last_four: String).void }
965
- attr_writer :last_four
966
-
967
- # Customizable name to identify the card. We recommend against using this field to
968
- # store JSON data as it can cause unexpected behavior.
969
- sig { returns(T.nilable(String)) }
970
- attr_reader :memo
951
+ sig { returns(String) }
952
+ attr_accessor :last_four
971
953
 
972
- sig { params(memo: String).void }
973
- attr_writer :memo
954
+ # Customizable name to identify the card
955
+ sig { returns(String) }
956
+ attr_accessor :memo
974
957
 
975
958
  # Amount (in cents) to limit approved authorizations. Purchase requests above the
976
959
  # spend limit will be declined (refunds and credits will be approved).
@@ -980,71 +963,37 @@ module Lithic
980
963
  # reconciliation-level accuracy. Spend limits also cannot block force posted
981
964
  # charges (i.e., when a merchant sends a clearing message without a prior
982
965
  # authorization).
983
- sig { returns(T.nilable(Integer)) }
984
- attr_reader :spend_limit
985
-
986
- sig { params(spend_limit: Integer).void }
987
- attr_writer :spend_limit
966
+ sig { returns(Integer) }
967
+ attr_accessor :spend_limit
988
968
 
989
969
  # Note that to support recurring monthly payments, which can occur on different
990
970
  # day every month, the time window we consider for MONTHLY velocity starts 6 days
991
971
  # after the current calendar date one month prior.
992
972
  sig do
993
973
  returns(
994
- T.nilable(
995
- Lithic::CardAuthorizationApprovalRequestWebhookEvent::Card::SpendLimitDuration::TaggedSymbol
996
- )
974
+ Lithic::CardAuthorizationApprovalRequestWebhookEvent::Card::SpendLimitDuration::TaggedSymbol
997
975
  )
998
976
  end
999
- attr_reader :spend_limit_duration
1000
-
1001
- sig do
1002
- params(
1003
- spend_limit_duration:
1004
- Lithic::CardAuthorizationApprovalRequestWebhookEvent::Card::SpendLimitDuration::OrSymbol
1005
- ).void
1006
- end
1007
- attr_writer :spend_limit_duration
977
+ attr_accessor :spend_limit_duration
1008
978
 
1009
979
  sig do
1010
980
  returns(
1011
- T.nilable(
1012
- Lithic::CardAuthorizationApprovalRequestWebhookEvent::Card::State::TaggedSymbol
1013
- )
981
+ Lithic::CardAuthorizationApprovalRequestWebhookEvent::Card::State::TaggedSymbol
1014
982
  )
1015
983
  end
1016
- attr_reader :state
1017
-
1018
- sig do
1019
- params(
1020
- state:
1021
- Lithic::CardAuthorizationApprovalRequestWebhookEvent::Card::State::OrSymbol
1022
- ).void
1023
- end
1024
- attr_writer :state
984
+ attr_accessor :state
1025
985
 
1026
986
  sig do
1027
987
  returns(
1028
- T.nilable(
1029
- Lithic::CardAuthorizationApprovalRequestWebhookEvent::Card::Type::TaggedSymbol
1030
- )
988
+ Lithic::CardAuthorizationApprovalRequestWebhookEvent::Card::Type::TaggedSymbol
1031
989
  )
1032
990
  end
1033
- attr_reader :type
1034
-
1035
- sig do
1036
- params(
1037
- type:
1038
- Lithic::CardAuthorizationApprovalRequestWebhookEvent::Card::Type::OrSymbol
1039
- ).void
1040
- end
1041
- attr_writer :type
991
+ attr_accessor :type
1042
992
 
1043
993
  # Card object in ASA
1044
994
  sig do
1045
995
  params(
1046
996
  token: String,
1047
- hostname: String,
1048
997
  last_four: String,
1049
998
  memo: String,
1050
999
  spend_limit: Integer,
@@ -1058,14 +1007,11 @@ module Lithic
1058
1007
  end
1059
1008
  def self.new(
1060
1009
  # Globally unique identifier for the card.
1061
- token: nil,
1062
- # Hostname of card’s locked merchant (will be empty if not applicable)
1063
- hostname: nil,
1010
+ token:,
1064
1011
  # Last four digits of the card number
1065
- last_four: nil,
1066
- # Customizable name to identify the card. We recommend against using this field to
1067
- # store JSON data as it can cause unexpected behavior.
1068
- memo: nil,
1012
+ last_four:,
1013
+ # Customizable name to identify the card
1014
+ memo:,
1069
1015
  # Amount (in cents) to limit approved authorizations. Purchase requests above the
1070
1016
  # spend limit will be declined (refunds and credits will be approved).
1071
1017
  #
@@ -1074,13 +1020,13 @@ module Lithic
1074
1020
  # reconciliation-level accuracy. Spend limits also cannot block force posted
1075
1021
  # charges (i.e., when a merchant sends a clearing message without a prior
1076
1022
  # authorization).
1077
- spend_limit: nil,
1023
+ spend_limit:,
1078
1024
  # Note that to support recurring monthly payments, which can occur on different
1079
1025
  # day every month, the time window we consider for MONTHLY velocity starts 6 days
1080
1026
  # after the current calendar date one month prior.
1081
- spend_limit_duration: nil,
1082
- state: nil,
1083
- type: nil
1027
+ spend_limit_duration:,
1028
+ state:,
1029
+ type:
1084
1030
  )
1085
1031
  end
1086
1032
 
@@ -1088,7 +1034,6 @@ module Lithic
1088
1034
  override.returns(
1089
1035
  {
1090
1036
  token: String,
1091
- hostname: String,
1092
1037
  last_four: String,
1093
1038
  memo: String,
1094
1039
  spend_limit: Integer,
@@ -27,7 +27,8 @@ module Lithic
27
27
  sig { returns(T.anything) }
28
28
  attr_accessor :shipping_address
29
29
 
30
- # Shipping method for all cards in this bulk order
30
+ # Shipping method for all cards in this bulk order. BULK_PRIORITY, BULK_2_DAY, and
31
+ # BULK_EXPRESS are only available with Perfect Plastic Printing
31
32
  sig { returns(Lithic::CardBulkOrder::ShippingMethod::TaggedSymbol) }
32
33
  attr_accessor :shipping_method
33
34
 
@@ -65,7 +66,8 @@ module Lithic
65
66
  customer_product_id:,
66
67
  # Shipping address for all cards in this bulk order
67
68
  shipping_address:,
68
- # Shipping method for all cards in this bulk order
69
+ # Shipping method for all cards in this bulk order. BULK_PRIORITY, BULK_2_DAY, and
70
+ # BULK_EXPRESS are only available with Perfect Plastic Printing
69
71
  shipping_method:,
70
72
  # Status of the bulk order. OPEN indicates the order is accepting cards. LOCKED
71
73
  # indicates the order is finalized and no more cards can be added
@@ -93,7 +95,8 @@ module Lithic
93
95
  def to_hash
94
96
  end
95
97
 
96
- # Shipping method for all cards in this bulk order
98
+ # Shipping method for all cards in this bulk order. BULK_PRIORITY, BULK_2_DAY, and
99
+ # BULK_EXPRESS are only available with Perfect Plastic Printing
97
100
  module ShippingMethod
98
101
  extend Lithic::Internal::Type::Enum
99
102
 
@@ -106,6 +109,21 @@ module Lithic
106
109
  :BULK_EXPEDITED,
107
110
  Lithic::CardBulkOrder::ShippingMethod::TaggedSymbol
108
111
  )
112
+ BULK_PRIORITY =
113
+ T.let(
114
+ :BULK_PRIORITY,
115
+ Lithic::CardBulkOrder::ShippingMethod::TaggedSymbol
116
+ )
117
+ BULK_2_DAY =
118
+ T.let(
119
+ :BULK_2_DAY,
120
+ Lithic::CardBulkOrder::ShippingMethod::TaggedSymbol
121
+ )
122
+ BULK_EXPRESS =
123
+ T.let(
124
+ :BULK_EXPRESS,
125
+ Lithic::CardBulkOrder::ShippingMethod::TaggedSymbol
126
+ )
109
127
 
110
128
  sig do
111
129
  override.returns(
@@ -20,7 +20,8 @@ module Lithic
20
20
  sig { returns(T.anything) }
21
21
  attr_accessor :shipping_address
22
22
 
23
- # Shipping method for all cards in this bulk order
23
+ # Shipping method for all cards in this bulk order. BULK_PRIORITY, BULK_2_DAY, and
24
+ # BULK_EXPRESS are only available with Perfect Plastic Printing
24
25
  sig do
25
26
  returns(Lithic::CardBulkOrderCreateParams::ShippingMethod::OrSymbol)
26
27
  end
@@ -41,7 +42,8 @@ module Lithic
41
42
  customer_product_id:,
42
43
  # Shipping address for all cards in this bulk order
43
44
  shipping_address:,
44
- # Shipping method for all cards in this bulk order
45
+ # Shipping method for all cards in this bulk order. BULK_PRIORITY, BULK_2_DAY, and
46
+ # BULK_EXPRESS are only available with Perfect Plastic Printing
45
47
  shipping_method:,
46
48
  request_options: {}
47
49
  )
@@ -61,7 +63,8 @@ module Lithic
61
63
  def to_hash
62
64
  end
63
65
 
64
- # Shipping method for all cards in this bulk order
66
+ # Shipping method for all cards in this bulk order. BULK_PRIORITY, BULK_2_DAY, and
67
+ # BULK_EXPRESS are only available with Perfect Plastic Printing
65
68
  module ShippingMethod
66
69
  extend Lithic::Internal::Type::Enum
67
70
 
@@ -76,6 +79,21 @@ module Lithic
76
79
  :BULK_EXPEDITED,
77
80
  Lithic::CardBulkOrderCreateParams::ShippingMethod::TaggedSymbol
78
81
  )
82
+ BULK_PRIORITY =
83
+ T.let(
84
+ :BULK_PRIORITY,
85
+ Lithic::CardBulkOrderCreateParams::ShippingMethod::TaggedSymbol
86
+ )
87
+ BULK_2_DAY =
88
+ T.let(
89
+ :BULK_2_DAY,
90
+ Lithic::CardBulkOrderCreateParams::ShippingMethod::TaggedSymbol
91
+ )
92
+ BULK_EXPRESS =
93
+ T.let(
94
+ :BULK_EXPRESS,
95
+ Lithic::CardBulkOrderCreateParams::ShippingMethod::TaggedSymbol
96
+ )
79
97
 
80
98
  sig do
81
99
  override.returns(
@@ -51,7 +51,8 @@ module Lithic
51
51
  # tracking
52
52
  # - `EXPEDITED` - FedEx or UPS depending on card manufacturer, Standard Overnight
53
53
  # or similar international option, with tracking
54
- # - `BULK_EXPEDITED` - Bulk shipment with Expedited shipping
54
+ # - `BULK` - Card will be shipped as part of a bulk fulfillment order. The
55
+ # shipping method and timeline are inherited from the parent bulk order.
55
56
  sig do
56
57
  returns(
57
58
  T.nilable(Lithic::CardConvertPhysicalParams::ShippingMethod::OrSymbol)
@@ -102,7 +103,8 @@ module Lithic
102
103
  # tracking
103
104
  # - `EXPEDITED` - FedEx or UPS depending on card manufacturer, Standard Overnight
104
105
  # or similar international option, with tracking
105
- # - `BULK_EXPEDITED` - Bulk shipment with Expedited shipping
106
+ # - `BULK` - Card will be shipped as part of a bulk fulfillment order. The
107
+ # shipping method and timeline are inherited from the parent bulk order.
106
108
  shipping_method: nil,
107
109
  request_options: {}
108
110
  )
@@ -138,7 +140,8 @@ module Lithic
138
140
  # tracking
139
141
  # - `EXPEDITED` - FedEx or UPS depending on card manufacturer, Standard Overnight
140
142
  # or similar international option, with tracking
141
- # - `BULK_EXPEDITED` - Bulk shipment with Expedited shipping
143
+ # - `BULK` - Card will be shipped as part of a bulk fulfillment order. The
144
+ # shipping method and timeline are inherited from the parent bulk order.
142
145
  module ShippingMethod
143
146
  extend Lithic::Internal::Type::Enum
144
147
 
@@ -153,9 +156,9 @@ module Lithic
153
156
  :"2_DAY",
154
157
  Lithic::CardConvertPhysicalParams::ShippingMethod::TaggedSymbol
155
158
  )
156
- BULK_EXPEDITED =
159
+ BULK =
157
160
  T.let(
158
- :BULK_EXPEDITED,
161
+ :BULK,
159
162
  Lithic::CardConvertPhysicalParams::ShippingMethod::TaggedSymbol
160
163
  )
161
164
  EXPEDITED =
@@ -208,7 +208,8 @@ module Lithic
208
208
  # tracking
209
209
  # - `EXPEDITED` - FedEx or UPS depending on card manufacturer, Standard Overnight
210
210
  # or similar international option, with tracking
211
- # - `BULK_EXPEDITED` - Bulk shipment with Expedited shipping
211
+ # - `BULK` - Card will be shipped as part of a bulk fulfillment order. The
212
+ # shipping method and timeline are inherited from the parent bulk order.
212
213
  sig do
213
214
  returns(T.nilable(Lithic::CardCreateParams::ShippingMethod::OrSymbol))
214
215
  end
@@ -409,7 +410,8 @@ module Lithic
409
410
  # tracking
410
411
  # - `EXPEDITED` - FedEx or UPS depending on card manufacturer, Standard Overnight
411
412
  # or similar international option, with tracking
412
- # - `BULK_EXPEDITED` - Bulk shipment with Expedited shipping
413
+ # - `BULK` - Card will be shipped as part of a bulk fulfillment order. The
414
+ # shipping method and timeline are inherited from the parent bulk order.
413
415
  shipping_method: nil,
414
416
  # Amount (in cents) to limit approved authorizations (e.g. 100000 would be a
415
417
  # $1,000 limit). Transaction requests above the spend limit will be declined. Note
@@ -635,7 +637,8 @@ module Lithic
635
637
  # tracking
636
638
  # - `EXPEDITED` - FedEx or UPS depending on card manufacturer, Standard Overnight
637
639
  # or similar international option, with tracking
638
- # - `BULK_EXPEDITED` - Bulk shipment with Expedited shipping
640
+ # - `BULK` - Card will be shipped as part of a bulk fulfillment order. The
641
+ # shipping method and timeline are inherited from the parent bulk order.
639
642
  module ShippingMethod
640
643
  extend Lithic::Internal::Type::Enum
641
644
 
@@ -650,11 +653,8 @@ module Lithic
650
653
  :"2_DAY",
651
654
  Lithic::CardCreateParams::ShippingMethod::TaggedSymbol
652
655
  )
653
- BULK_EXPEDITED =
654
- T.let(
655
- :BULK_EXPEDITED,
656
- Lithic::CardCreateParams::ShippingMethod::TaggedSymbol
657
- )
656
+ BULK =
657
+ T.let(:BULK, Lithic::CardCreateParams::ShippingMethod::TaggedSymbol)
658
658
  EXPEDITED =
659
659
  T.let(
660
660
  :EXPEDITED,
@@ -51,7 +51,8 @@ module Lithic
51
51
  # tracking
52
52
  # - `EXPEDITED` - FedEx or UPS depending on card manufacturer, Standard Overnight
53
53
  # or similar international option, with tracking
54
- # - `BULK_EXPEDITED` - Bulk shipment with Expedited shipping
54
+ # - `BULK` - Card will be shipped as part of a bulk fulfillment order. The
55
+ # shipping method and timeline are inherited from the parent bulk order.
55
56
  sig do
56
57
  returns(T.nilable(Lithic::CardReissueParams::ShippingMethod::OrSymbol))
57
58
  end
@@ -98,7 +99,8 @@ module Lithic
98
99
  # tracking
99
100
  # - `EXPEDITED` - FedEx or UPS depending on card manufacturer, Standard Overnight
100
101
  # or similar international option, with tracking
101
- # - `BULK_EXPEDITED` - Bulk shipment with Expedited shipping
102
+ # - `BULK` - Card will be shipped as part of a bulk fulfillment order. The
103
+ # shipping method and timeline are inherited from the parent bulk order.
102
104
  shipping_method: nil,
103
105
  request_options: {}
104
106
  )
@@ -134,7 +136,8 @@ module Lithic
134
136
  # tracking
135
137
  # - `EXPEDITED` - FedEx or UPS depending on card manufacturer, Standard Overnight
136
138
  # or similar international option, with tracking
137
- # - `BULK_EXPEDITED` - Bulk shipment with Expedited shipping
139
+ # - `BULK` - Card will be shipped as part of a bulk fulfillment order. The
140
+ # shipping method and timeline are inherited from the parent bulk order.
138
141
  module ShippingMethod
139
142
  extend Lithic::Internal::Type::Enum
140
143
 
@@ -149,11 +152,8 @@ module Lithic
149
152
  :"2_DAY",
150
153
  Lithic::CardReissueParams::ShippingMethod::TaggedSymbol
151
154
  )
152
- BULK_EXPEDITED =
153
- T.let(
154
- :BULK_EXPEDITED,
155
- Lithic::CardReissueParams::ShippingMethod::TaggedSymbol
156
- )
155
+ BULK =
156
+ T.let(:BULK, Lithic::CardReissueParams::ShippingMethod::TaggedSymbol)
157
157
  EXPEDITED =
158
158
  T.let(
159
159
  :EXPEDITED,
@@ -67,7 +67,8 @@ module Lithic
67
67
  # tracking
68
68
  # - `EXPEDITED` - FedEx or UPS depending on card manufacturer, Standard Overnight
69
69
  # or similar international option, with tracking
70
- # - `BULK_EXPEDITED` - Bulk shipment with Expedited shipping
70
+ # - `BULK` - Card will be shipped as part of a bulk fulfillment order. The
71
+ # shipping method and timeline are inherited from the parent bulk order.
71
72
  sig do
72
73
  returns(T.nilable(Lithic::CardRenewParams::ShippingMethod::OrSymbol))
73
74
  end
@@ -122,7 +123,8 @@ module Lithic
122
123
  # tracking
123
124
  # - `EXPEDITED` - FedEx or UPS depending on card manufacturer, Standard Overnight
124
125
  # or similar international option, with tracking
125
- # - `BULK_EXPEDITED` - Bulk shipment with Expedited shipping
126
+ # - `BULK` - Card will be shipped as part of a bulk fulfillment order. The
127
+ # shipping method and timeline are inherited from the parent bulk order.
126
128
  shipping_method: nil,
127
129
  request_options: {}
128
130
  )
@@ -159,7 +161,8 @@ module Lithic
159
161
  # tracking
160
162
  # - `EXPEDITED` - FedEx or UPS depending on card manufacturer, Standard Overnight
161
163
  # or similar international option, with tracking
162
- # - `BULK_EXPEDITED` - Bulk shipment with Expedited shipping
164
+ # - `BULK` - Card will be shipped as part of a bulk fulfillment order. The
165
+ # shipping method and timeline are inherited from the parent bulk order.
163
166
  module ShippingMethod
164
167
  extend Lithic::Internal::Type::Enum
165
168
 
@@ -171,11 +174,8 @@ module Lithic
171
174
 
172
175
  SHIPPING_METHOD_2_DAY =
173
176
  T.let(:"2_DAY", Lithic::CardRenewParams::ShippingMethod::TaggedSymbol)
174
- BULK_EXPEDITED =
175
- T.let(
176
- :BULK_EXPEDITED,
177
- Lithic::CardRenewParams::ShippingMethod::TaggedSymbol
178
- )
177
+ BULK =
178
+ T.let(:BULK, Lithic::CardRenewParams::ShippingMethod::TaggedSymbol)
179
179
  EXPEDITED =
180
180
  T.let(
181
181
  :EXPEDITED,
@@ -349,6 +349,11 @@ module Lithic
349
349
  :EARLY_DIRECT_DEPOSIT_FLOAT,
350
350
  Lithic::FinancialAccount::Type::TaggedSymbol
351
351
  )
352
+ PROVISIONAL_CREDIT_ACCOUNT =
353
+ T.let(
354
+ :PROVISIONAL_CREDIT_ACCOUNT,
355
+ Lithic::FinancialAccount::Type::TaggedSymbol
356
+ )
352
357
 
353
358
  sig do
354
359
  override.returns(
@@ -159,6 +159,11 @@ module Lithic
159
159
  :INTEREST_AND_FEES_PAUSED,
160
160
  Lithic::FinancialAccountUpdateStatusParams::Substatus::TaggedSymbol
161
161
  )
162
+ DELINQUENT =
163
+ T.let(
164
+ :DELINQUENT,
165
+ Lithic::FinancialAccountUpdateStatusParams::Substatus::TaggedSymbol
166
+ )
162
167
 
163
168
  sig do
164
169
  override.returns(
@@ -50,7 +50,7 @@ module Lithic
50
50
  attr_accessor :credit_limit
51
51
 
52
52
  # Globally unique identifier for a credit product
53
- sig { returns(String) }
53
+ sig { returns(T.nilable(String)) }
54
54
  attr_accessor :credit_product_token
55
55
 
56
56
  # Number of days in the billing cycle
@@ -154,6 +154,12 @@ module Lithic
154
154
  end
155
155
  attr_writer :payoff_details
156
156
 
157
+ sig { returns(T.nilable(Lithic::StatementTotals)) }
158
+ attr_reader :statement_totals
159
+
160
+ sig { params(statement_totals: Lithic::StatementTotals::OrHash).void }
161
+ attr_writer :statement_totals
162
+
157
163
  sig do
158
164
  params(
159
165
  token: String,
@@ -163,7 +169,7 @@ module Lithic
163
169
  available_credit: Integer,
164
170
  created: Time,
165
171
  credit_limit: Integer,
166
- credit_product_token: String,
172
+ credit_product_token: T.nilable(String),
167
173
  days_in_billing_cycle: Integer,
168
174
  ending_balance: Integer,
169
175
  financial_account_token: String,
@@ -185,7 +191,8 @@ module Lithic
185
191
  payoff_details:
186
192
  T.nilable(
187
193
  Lithic::FinancialAccounts::Statement::PayoffDetails::OrHash
188
- )
194
+ ),
195
+ statement_totals: Lithic::StatementTotals::OrHash
189
196
  ).returns(T.attached_class)
190
197
  end
191
198
  def self.new(
@@ -227,7 +234,8 @@ module Lithic
227
234
  # Date when the next billing period will end
228
235
  next_statement_end_date: nil,
229
236
  # Details on number and size of payments to pay off balance
230
- payoff_details: nil
237
+ payoff_details: nil,
238
+ statement_totals: nil
231
239
  )
232
240
  end
233
241
 
@@ -241,7 +249,7 @@ module Lithic
241
249
  available_credit: Integer,
242
250
  created: Time,
243
251
  credit_limit: Integer,
244
- credit_product_token: String,
252
+ credit_product_token: T.nilable(String),
245
253
  days_in_billing_cycle: Integer,
246
254
  ending_balance: Integer,
247
255
  financial_account_token: String,
@@ -261,7 +269,8 @@ module Lithic
261
269
  next_payment_due_date: Date,
262
270
  next_statement_end_date: Date,
263
271
  payoff_details:
264
- T.nilable(Lithic::FinancialAccounts::Statement::PayoffDetails)
272
+ T.nilable(Lithic::FinancialAccounts::Statement::PayoffDetails),
273
+ statement_totals: Lithic::StatementTotals
265
274
  }
266
275
  )
267
276
  end
@@ -50,6 +50,11 @@ module Lithic
50
50
  :EARLY_DIRECT_DEPOSIT_FLOAT,
51
51
  Lithic::InstanceFinancialAccountType::TaggedSymbol
52
52
  )
53
+ PROVISIONAL_CREDIT_ACCOUNT =
54
+ T.let(
55
+ :PROVISIONAL_CREDIT_ACCOUNT,
56
+ Lithic::InstanceFinancialAccountType::TaggedSymbol
57
+ )
53
58
 
54
59
  sig do
55
60
  override.returns(
@@ -171,19 +171,28 @@ module Lithic
171
171
  sig { returns(T.nilable(String)) }
172
172
  attr_accessor :addenda
173
173
 
174
+ # Value to override the configured company name with. Can only be used if allowed
175
+ # to override
176
+ sig { returns(T.nilable(String)) }
177
+ attr_accessor :override_company_name
178
+
174
179
  sig do
175
180
  params(
176
181
  sec_code:
177
182
  Lithic::PaymentCreateParams::MethodAttributes::SecCode::OrSymbol,
178
183
  ach_hold_period: Integer,
179
- addenda: T.nilable(String)
184
+ addenda: T.nilable(String),
185
+ override_company_name: T.nilable(String)
180
186
  ).returns(T.attached_class)
181
187
  end
182
188
  def self.new(
183
189
  sec_code:,
184
190
  # Number of days to hold the ACH payment
185
191
  ach_hold_period: nil,
186
- addenda: nil
192
+ addenda: nil,
193
+ # Value to override the configured company name with. Can only be used if allowed
194
+ # to override
195
+ override_company_name: nil
187
196
  )
188
197
  end
189
198
 
@@ -193,7 +202,8 @@ module Lithic
193
202
  sec_code:
194
203
  Lithic::PaymentCreateParams::MethodAttributes::SecCode::OrSymbol,
195
204
  ach_hold_period: Integer,
196
- addenda: T.nilable(String)
205
+ addenda: T.nilable(String),
206
+ override_company_name: T.nilable(String)
197
207
  }
198
208
  )
199
209
  end
@@ -3,12 +3,11 @@
3
3
  module Lithic
4
4
  module Resources
5
5
  class CardBulkOrders
6
- # Create a new bulk order for physical card shipments **[BETA]**. Cards can be
7
- # added to the order via the POST /v1/cards endpoint by specifying the
8
- # bulk_order_token. Lock the order via PATCH
9
- # /v1/card_bulk_orders/{bulk_order_token} to prepare for shipment. Please work
10
- # with your Customer Success Manager and card personalization bureau to ensure
11
- # bulk shipping is supported for your program.
6
+ # Create a new bulk order for physical card shipments. Cards can be added to the
7
+ # order via the POST /v1/cards endpoint by specifying the bulk_order_token. Lock
8
+ # the order via PATCH /v1/card_bulk_orders/{bulk_order_token} to prepare for
9
+ # shipment. Please work with your Customer Success Manager and card
10
+ # personalization bureau to ensure bulk shipping is supported for your program.
12
11
  sig do
13
12
  params(
14
13
  customer_product_id: String,
@@ -24,13 +23,14 @@ module Lithic
24
23
  customer_product_id:,
25
24
  # Shipping address for all cards in this bulk order
26
25
  shipping_address:,
27
- # Shipping method for all cards in this bulk order
26
+ # Shipping method for all cards in this bulk order. BULK_PRIORITY, BULK_2_DAY, and
27
+ # BULK_EXPRESS are only available with Perfect Plastic Printing
28
28
  shipping_method:,
29
29
  request_options: {}
30
30
  )
31
31
  end
32
32
 
33
- # Retrieve a specific bulk order by token **[BETA]**
33
+ # Retrieve a specific bulk order by token
34
34
  sig do
35
35
  params(
36
36
  bulk_order_token: String,
@@ -44,8 +44,8 @@ module Lithic
44
44
  )
45
45
  end
46
46
 
47
- # Update a bulk order **[BETA]**. Primarily used to lock the order, preventing
48
- # additional cards from being added
47
+ # Update a bulk order. Primarily used to lock the order, preventing additional
48
+ # cards from being added
49
49
  sig do
50
50
  params(
51
51
  bulk_order_token: String,
@@ -62,7 +62,7 @@ module Lithic
62
62
  )
63
63
  end
64
64
 
65
- # List bulk orders for physical card shipments **[BETA]**
65
+ # List bulk orders for physical card shipments
66
66
  sig do
67
67
  params(
68
68
  begin_: Time,