Skip to content

Commit

Permalink
Update Stripe resources
Browse files Browse the repository at this point in the history
  • Loading branch information
jcberquist committed Feb 2, 2024
1 parent 244c8cc commit 14fa465
Show file tree
Hide file tree
Showing 30 changed files with 553 additions and 8 deletions.
24 changes: 24 additions & 0 deletions lib/resources/accountSessions.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,30 @@ component {
components: {
account_onboarding: {
enabled: 'boolean'
},
payment_details: {
enabled: 'boolean',
features: {
capture_payments: 'boolean',
dispute_management: 'boolean',
refund_management: 'boolean'
}
},
payments: {
enabled: 'boolean',
features: {
capture_payments: 'boolean',
dispute_management: 'boolean',
refund_management: 'boolean'
}
},
payouts: {
enabled: 'boolean',
features: {
edit_payout_schedule: 'boolean',
instant_payouts: 'boolean',
standard_payouts: 'boolean'
}
}
}
},
Expand Down
52 changes: 47 additions & 5 deletions lib/resources/accounts.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@ component {
'create': {
arguments: {
business_profile: {
annual_revenue: {
amount: 'currency'
},
monthly_estimated_revenue: {
amount: 'currency',
currency: 'iso_currency_code'
amount: 'currency'
}
},
capabilities: {
Expand Down Expand Up @@ -95,12 +97,18 @@ component {
promptpay_payments: {
requested: 'boolean'
},
revolut_pay_payments: {
requested: 'boolean'
},
sepa_debit_payments: {
requested: 'boolean'
},
sofort_payments: {
requested: 'boolean'
},
swish_payments: {
requested: 'boolean'
},
'tax_reporting_us_1099_k': {
requested: 'boolean'
},
Expand Down Expand Up @@ -128,7 +136,13 @@ component {
date: 'timestamp'
}
},
default_currency: 'iso_currency_code',
individual: {
relationship: {
director: 'boolean',
executive: 'boolean',
owner: 'boolean'
}
},
settings: {
card_issuing: {
tos_acceptance: {
Expand Down Expand Up @@ -170,9 +184,15 @@ component {
},
'createPerson': {
arguments: {
additional_tos_acceptances: {
account: {
date: 'timestamp'
}
},
relationship: {
director: 'boolean',
executive: 'boolean',
legal_guardian: 'boolean',
owner: 'boolean',
representative: 'boolean'
}
Expand Down Expand Up @@ -209,6 +229,7 @@ component {
relationship: {
director: 'boolean',
executive: 'boolean',
legal_guardian: 'boolean',
owner: 'boolean',
representative: 'boolean'
}
Expand All @@ -234,9 +255,11 @@ component {
'update': {
arguments: {
business_profile: {
annual_revenue: {
amount: 'currency'
},
monthly_estimated_revenue: {
amount: 'currency',
currency: 'iso_currency_code'
amount: 'currency'
}
},
capabilities: {
Expand Down Expand Up @@ -324,12 +347,18 @@ component {
promptpay_payments: {
requested: 'boolean'
},
revolut_pay_payments: {
requested: 'boolean'
},
sepa_debit_payments: {
requested: 'boolean'
},
sofort_payments: {
requested: 'boolean'
},
swish_payments: {
requested: 'boolean'
},
'tax_reporting_us_1099_k': {
requested: 'boolean'
},
Expand Down Expand Up @@ -357,6 +386,13 @@ component {
date: 'timestamp'
}
},
individual: {
relationship: {
director: 'boolean',
executive: 'boolean',
owner: 'boolean'
}
},
settings: {
card_issuing: {
tos_acceptance: {
Expand Down Expand Up @@ -401,9 +437,15 @@ component {
},
'updatePerson': {
arguments: {
additional_tos_acceptances: {
account: {
date: 'timestamp'
}
},
relationship: {
director: 'boolean',
executive: 'boolean',
legal_guardian: 'boolean',
owner: 'boolean',
representative: 'boolean'
}
Expand Down
3 changes: 3 additions & 0 deletions lib/resources/checkout/sessions.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ component {
path: '/checkout/sessions/{session_id}/expire'
},
'list': {
arguments: {
created: 'datefilter'
},
path: '/checkout/sessions'
},
'listLineItems': {
Expand Down
30 changes: 30 additions & 0 deletions lib/resources/climate/orders.cfc
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
component {

this.metadata = {
methods: {
'cancel': {
httpMethod: 'post',
path: '/climate/orders/{order_id}/cancel'
},
'create': {
arguments: {
amount: 'currency',
currency: 'iso_currency_code'
},
httpMethod: 'post',
path: '/climate/orders'
},
'list': {
path: '/climate/orders'
},
'retrieve': {
path: '/climate/orders/{order_id}'
},
'update': {
httpMethod: 'post',
path: '/climate/orders/{order_id}'
}
}
};

}
14 changes: 14 additions & 0 deletions lib/resources/climate/products.cfc
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
component {

this.metadata = {
methods: {
'list': {
path: '/climate/products'
},
'retrieve': {
path: '/climate/products/{product_id}'
}
}
};

}
14 changes: 14 additions & 0 deletions lib/resources/climate/suppliers.cfc
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
component {

this.metadata = {
methods: {
'list': {
path: '/climate/suppliers'
},
'retrieve': {
path: '/climate/suppliers/{supplier_id}'
}
}
};

}
12 changes: 12 additions & 0 deletions lib/resources/creditNotes.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ component {
effective_at: 'timestamp',
lines: {
amount: 'currency',
tax_amounts: {
amount: 'currency',
taxable_amount: 'currency'
},
unit_amount: 'currency'
},
out_of_band_amount: 'currency',
Expand All @@ -30,6 +34,10 @@ component {
effective_at: 'timestamp',
lines: {
amount: 'currency',
tax_amounts: {
amount: 'currency',
taxable_amount: 'currency'
},
unit_amount: 'currency'
},
out_of_band_amount: 'currency',
Expand All @@ -44,6 +52,10 @@ component {
effective_at: 'timestamp',
lines: {
amount: 'currency',
tax_amounts: {
amount: 'currency',
taxable_amount: 'currency'
},
unit_amount: 'currency'
},
out_of_band_amount: 'currency',
Expand Down
22 changes: 22 additions & 0 deletions lib/resources/customerSessions.cfc
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
component {

this.metadata = {
methods: {
'create': {
arguments: {
components: {
buy_button: {
enabled: 'boolean'
},
pricing_table: {
enabled: 'boolean'
}
}
},
httpMethod: 'post',
path: '/customer_sessions'
}
}
};

}
8 changes: 8 additions & 0 deletions lib/resources/financialConnections/accounts.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,14 @@ component {
},
'retrieve': {
path: '/financial_connections/accounts/{account_id}'
},
'subscribe': {
httpMethod: 'post',
path: '/financial_connections/accounts/{account_id}/subscribe'
},
'unsubscribe': {
httpMethod: 'post',
path: '/financial_connections/accounts/{account_id}/unsubscribe'
}
}
};
Expand Down
17 changes: 17 additions & 0 deletions lib/resources/financialConnections/transactions.cfc
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
component {

this.metadata = {
methods: {
'list': {
arguments: {
transacted_at: 'datefilter'
},
path: '/financial_connections/transactions'
},
'retrieve': {
path: '/financial_connections/transactions/{transaction_id}'
}
}
};

}
21 changes: 21 additions & 0 deletions lib/resources/issuing/tokens.cfc
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
component {

this.metadata = {
methods: {
'list': {
arguments: {
created: 'datefilter'
},
path: '/issuing/tokens'
},
'retrieve': {
path: '/issuing/tokens/{token_id}'
},
'update': {
httpMethod: 'post',
path: '/issuing/tokens/{token_id}'
}
}
};

}
1 change: 1 addition & 0 deletions lib/resources/paymentIntents.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ component {
arguments: {
amount_to_capture: 'currency',
application_fee_amount: 'currency',
final_capture: 'boolean',
transfer_data: {
amount: 'currency'
}
Expand Down
25 changes: 25 additions & 0 deletions lib/resources/paymentMethodConfigurations.cfc
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
component {

this.metadata = {
methods: {
'create': {
httpMethod: 'post',
path: '/payment_method_configurations'
},
'list': {
path: '/payment_method_configurations'
},
'retrieve': {
path: '/payment_method_configurations/{payment_method_configuration_id}'
},
'update': {
arguments: {
active: 'boolean'
},
httpMethod: 'post',
path: '/payment_method_configurations/{payment_method_configuration_id}'
}
}
};

}
3 changes: 3 additions & 0 deletions lib/resources/radar/earlyFraudWarnings.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ component {
this.metadata = {
methods: {
'list': {
arguments: {
created: 'datefilter'
},
path: '/radar/early_fraud_warnings'
},
'retrieve': {
Expand Down
Loading

0 comments on commit 14fa465

Please sign in to comment.