spree_api 6.0.5 → 6.0.6
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.
- checksums.yaml +4 -4
- data/app/controllers/concerns/spree/api/v3/error_handler.rb +4 -0
- data/app/controllers/spree/api/v3/admin/gift_cards_controller.rb +6 -0
- data/app/controllers/spree/api/v3/admin/order_groups_controller.rb +1 -1
- data/app/controllers/spree/api/v3/admin/orders/payments_controller.rb +10 -6
- data/app/controllers/spree/api/v3/store/products/filters_controller.rb +1 -0
- data/app/controllers/spree/api/v3/webhooks/payments_controller.rb +36 -6
- data/app/serializers/spree/api/v3/admin/admin_user_serializer.rb +4 -2
- data/app/serializers/spree/api/v3/admin/commission_rule_serializer.rb +3 -3
- data/app/serializers/spree/api/v3/admin/consent_record_serializer.rb +1 -1
- data/app/serializers/spree/api/v3/admin/import_serializer.rb +4 -1
- data/app/serializers/spree/api/v3/admin/order_serializer.rb +11 -0
- data/app/serializers/spree/api/v3/admin/payment_capture_event_serializer.rb +5 -1
- data/app/serializers/spree/api/v3/admin/payment_serializer.rb +5 -2
- data/app/serializers/spree/api/v3/admin/promotion_action_serializer.rb +3 -1
- data/app/serializers/spree/api/v3/admin/promotion_rule_serializer.rb +4 -4
- data/app/serializers/spree/api/v3/admin/refund_serializer.rb +5 -2
- data/app/serializers/spree/api/v3/cart_serializer.rb +16 -3
- data/app/serializers/spree/api/v3/company_serializer.rb +2 -2
- data/app/serializers/spree/api/v3/credit_card_serializer.rb +5 -1
- data/app/serializers/spree/api/v3/fulfillment_serializer.rb +4 -1
- data/app/serializers/spree/api/v3/payment_serializer.rb +3 -1
- data/app/serializers/spree/api/v3/product_filters_serializer.rb +1 -1
- data/app/serializers/spree/api/v3/product_serializer.rb +9 -1
- data/app/serializers/spree/api/v3/seller/import_serializer.rb +4 -1
- data/app/serializers/spree/api/v3/variant_serializer.rb +3 -1
- data/app/services/spree/api/v3/filter_table.rb +11 -26
- data/app/services/spree/api/v3/filters_aggregator.rb +13 -18
- data/config/locales/en.yml +1 -0
- data/lib/spree/api/enum_types.rb +7 -4
- data/lib/spree/api/openapi/schema_helper.rb +15 -234
- data/lib/spree/api/sdk_types.rb +5 -5
- data/openapi/admin.yaml +149 -151
- data/openapi/store.yaml +84 -144
- metadata +8 -9
- data/lib/spree/api/testing_support/always_register_type_hints.rb +0 -28
data/openapi/admin.yaml
CHANGED
|
@@ -28147,6 +28147,7 @@ paths:
|
|
|
28147
28147
|
created_at: '2026-01-15T12:00:00.000Z'
|
|
28148
28148
|
updated_at: '2026-01-15T12:00:00.000Z'
|
|
28149
28149
|
payment_total: '0.00'
|
|
28150
|
+
amount_left_to_pay: '0.00'
|
|
28150
28151
|
commission_amount_total: '0.00'
|
|
28151
28152
|
commission_tax_total: '0.00'
|
|
28152
28153
|
commission_total: '0.00'
|
|
@@ -29020,6 +29021,7 @@ paths:
|
|
|
29020
29021
|
created_at: '2026-01-15T12:00:00.000Z'
|
|
29021
29022
|
updated_at: '2026-01-15T12:00:00.000Z'
|
|
29022
29023
|
payment_total: '0.00'
|
|
29024
|
+
amount_left_to_pay: '0.00'
|
|
29023
29025
|
commission_amount_total: '0.00'
|
|
29024
29026
|
commission_tax_total: '0.00'
|
|
29025
29027
|
commission_total: '0.00'
|
|
@@ -29373,6 +29375,7 @@ paths:
|
|
|
29373
29375
|
created_at: '2026-01-15T12:00:00.000Z'
|
|
29374
29376
|
updated_at: '2026-01-15T12:00:00.000Z'
|
|
29375
29377
|
payment_total: '0.00'
|
|
29378
|
+
amount_left_to_pay: '0.00'
|
|
29376
29379
|
commission_amount_total: '0.00'
|
|
29377
29380
|
commission_tax_total: '0.00'
|
|
29378
29381
|
commission_total: '0.00'
|
|
@@ -29599,6 +29602,7 @@ paths:
|
|
|
29599
29602
|
created_at: '2026-01-15T12:00:00.000Z'
|
|
29600
29603
|
updated_at: '2026-01-15T12:00:00.000Z'
|
|
29601
29604
|
payment_total: '0.00'
|
|
29605
|
+
amount_left_to_pay: '0.00'
|
|
29602
29606
|
commission_amount_total: '0.00'
|
|
29603
29607
|
commission_tax_total: '0.00'
|
|
29604
29608
|
commission_total: '0.00'
|
|
@@ -29756,6 +29760,7 @@ paths:
|
|
|
29756
29760
|
created_at: '2026-01-15T12:00:00.000Z'
|
|
29757
29761
|
updated_at: '2026-01-15T12:00:00.000Z'
|
|
29758
29762
|
payment_total: '0.00'
|
|
29763
|
+
amount_left_to_pay: '0.00'
|
|
29759
29764
|
commission_amount_total: '0.00'
|
|
29760
29765
|
commission_tax_total: '0.00'
|
|
29761
29766
|
commission_total: '0.00'
|
|
@@ -29903,6 +29908,7 @@ paths:
|
|
|
29903
29908
|
created_at: '2026-01-15T12:00:00.000Z'
|
|
29904
29909
|
updated_at: '2026-01-15T12:00:00.000Z'
|
|
29905
29910
|
payment_total: '0.00'
|
|
29911
|
+
amount_left_to_pay: '0.00'
|
|
29906
29912
|
commission_amount_total: '0.00'
|
|
29907
29913
|
commission_tax_total: '0.00'
|
|
29908
29914
|
commission_total: '0.00'
|
|
@@ -30102,6 +30108,7 @@ paths:
|
|
|
30102
30108
|
created_at: '2026-01-15T12:00:00.000Z'
|
|
30103
30109
|
updated_at: '2026-01-15T12:00:00.000Z'
|
|
30104
30110
|
payment_total: '110.00'
|
|
30111
|
+
amount_left_to_pay: '0.00'
|
|
30105
30112
|
commission_amount_total: '0.00'
|
|
30106
30113
|
commission_tax_total: '0.00'
|
|
30107
30114
|
commission_total: '0.00'
|
|
@@ -30281,6 +30288,7 @@ paths:
|
|
|
30281
30288
|
created_at: '2026-01-15T12:00:00.000Z'
|
|
30282
30289
|
updated_at: '2026-01-15T12:00:00.000Z'
|
|
30283
30290
|
payment_total: '0.00'
|
|
30291
|
+
amount_left_to_pay: '0.00'
|
|
30284
30292
|
commission_amount_total: '0.00'
|
|
30285
30293
|
commission_tax_total: '0.00'
|
|
30286
30294
|
commission_total: '0.00'
|
|
@@ -30421,6 +30429,7 @@ paths:
|
|
|
30421
30429
|
created_at: '2026-01-15T12:00:00.000Z'
|
|
30422
30430
|
updated_at: '2026-01-15T12:00:00.000Z'
|
|
30423
30431
|
payment_total: '0.00'
|
|
30432
|
+
amount_left_to_pay: '0.00'
|
|
30424
30433
|
commission_amount_total: '0.00'
|
|
30425
30434
|
commission_tax_total: '0.00'
|
|
30426
30435
|
commission_total: '0.00'
|
|
@@ -30555,6 +30564,7 @@ paths:
|
|
|
30555
30564
|
created_at: '2026-01-15T12:00:00.000Z'
|
|
30556
30565
|
updated_at: '2026-01-15T12:00:00.000Z'
|
|
30557
30566
|
payment_total: '0.00'
|
|
30567
|
+
amount_left_to_pay: '0.00'
|
|
30558
30568
|
commission_amount_total: '0.00'
|
|
30559
30569
|
commission_tax_total: '0.00'
|
|
30560
30570
|
commission_total: '0.00'
|
|
@@ -30694,6 +30704,7 @@ paths:
|
|
|
30694
30704
|
created_at: '2026-01-15T12:00:00.000Z'
|
|
30695
30705
|
updated_at: '2026-01-15T12:00:00.000Z'
|
|
30696
30706
|
payment_total: '0.00'
|
|
30707
|
+
amount_left_to_pay: '0.00'
|
|
30697
30708
|
commission_amount_total: '0.00'
|
|
30698
30709
|
commission_tax_total: '0.00'
|
|
30699
30710
|
commission_total: '0.00'
|
|
@@ -33109,7 +33120,7 @@ paths:
|
|
|
33109
33120
|
- api_key: []
|
|
33110
33121
|
bearer_auth: []
|
|
33111
33122
|
description: |-
|
|
33112
|
-
|
|
33123
|
+
Records a payment on the order, for the amount given or, by default, what the order still owes after the payments already recorded on it (failed, invalid and void payments don't count). The order's other payments are left as they are. The payment starts uncaptured (`checkout`) and counts towards the paid total once it is captured.
|
|
33113
33124
|
|
|
33114
33125
|
**Required scope:** `write_payments` (for API-key authentication).
|
|
33115
33126
|
x-codeSamples:
|
|
@@ -33298,7 +33309,7 @@ paths:
|
|
|
33298
33309
|
- api_key: []
|
|
33299
33310
|
bearer_auth: []
|
|
33300
33311
|
description: |-
|
|
33301
|
-
Captures
|
|
33312
|
+
Captures an authorized (`pending`) payment, in full or for part of its amount. An uncaptured (`checkout`) payment can be captured only when its payment method needs no authorization first. A capture may take at most what the order still owes after its other captured payments. A larger `amount` is refused. With no `amount`, the capture takes the authorized amount, or what is owed when that is less, and releases the rest of the authorization. Any capture is refused once nothing is owed. A captured payment counts towards the order's paid total.
|
|
33302
33313
|
|
|
33303
33314
|
**Required scope:** `write_payments` (for API-key authentication).
|
|
33304
33315
|
x-codeSamples:
|
|
@@ -59992,132 +60003,6 @@ components:
|
|
|
59992
60003
|
- actions
|
|
59993
60004
|
- subjects
|
|
59994
60005
|
- has_conditions
|
|
59995
|
-
ImportSchemaField:
|
|
59996
|
-
type: object
|
|
59997
|
-
description: A canonical column of an import type, including per-store custom
|
|
59998
|
-
field columns
|
|
59999
|
-
properties:
|
|
60000
|
-
name:
|
|
60001
|
-
type: string
|
|
60002
|
-
description: Canonical field name used in mappings
|
|
60003
|
-
example: slug
|
|
60004
|
-
label:
|
|
60005
|
-
type: string
|
|
60006
|
-
description: Human-readable label
|
|
60007
|
-
example: Slug
|
|
60008
|
-
required:
|
|
60009
|
-
type: boolean
|
|
60010
|
-
description: Whether the field must be mapped before processing
|
|
60011
|
-
required:
|
|
60012
|
-
- name
|
|
60013
|
-
- label
|
|
60014
|
-
- required
|
|
60015
|
-
CheckoutRequirement:
|
|
60016
|
-
type: object
|
|
60017
|
-
properties:
|
|
60018
|
-
step:
|
|
60019
|
-
type: string
|
|
60020
|
-
description: Checkout step this requirement belongs to
|
|
60021
|
-
example: payment
|
|
60022
|
-
field:
|
|
60023
|
-
type: string
|
|
60024
|
-
description: Field that needs to be satisfied
|
|
60025
|
-
example: payment
|
|
60026
|
-
message:
|
|
60027
|
-
type: string
|
|
60028
|
-
description: Human-readable requirement message
|
|
60029
|
-
example: Add a payment method
|
|
60030
|
-
required:
|
|
60031
|
-
- step
|
|
60032
|
-
- field
|
|
60033
|
-
- message
|
|
60034
|
-
CartWarning:
|
|
60035
|
-
type: object
|
|
60036
|
-
description: A warning about a cart issue (e.g., item removed due to stock change)
|
|
60037
|
-
properties:
|
|
60038
|
-
code:
|
|
60039
|
-
type: string
|
|
60040
|
-
description: Machine-readable warning code
|
|
60041
|
-
example: line_item_removed
|
|
60042
|
-
message:
|
|
60043
|
-
type: string
|
|
60044
|
-
description: Human-readable warning message
|
|
60045
|
-
example: Blue T-Shirt was removed because it was sold out
|
|
60046
|
-
line_item_id:
|
|
60047
|
-
type: string
|
|
60048
|
-
nullable: true
|
|
60049
|
-
description: Prefixed line item ID (when applicable)
|
|
60050
|
-
example: li_abc123
|
|
60051
|
-
variant_id:
|
|
60052
|
-
type: string
|
|
60053
|
-
nullable: true
|
|
60054
|
-
description: Prefixed variant ID (when applicable)
|
|
60055
|
-
example: variant_abc123
|
|
60056
|
-
item_index:
|
|
60057
|
-
type: integer
|
|
60058
|
-
nullable: true
|
|
60059
|
-
description: Position in the submitted items array, for warnings raised
|
|
60060
|
-
while applying a batch of item changes
|
|
60061
|
-
example: 1
|
|
60062
|
-
required:
|
|
60063
|
-
- code
|
|
60064
|
-
- message
|
|
60065
|
-
FulfillmentManifestItem:
|
|
60066
|
-
type: object
|
|
60067
|
-
description: An item within a fulfillment — which line item and how many units
|
|
60068
|
-
are in this fulfillment
|
|
60069
|
-
properties:
|
|
60070
|
-
item_id:
|
|
60071
|
-
type: string
|
|
60072
|
-
description: Line item ID
|
|
60073
|
-
example: li_abc123
|
|
60074
|
-
variant_id:
|
|
60075
|
-
type: string
|
|
60076
|
-
description: Variant ID
|
|
60077
|
-
example: variant_abc123
|
|
60078
|
-
quantity:
|
|
60079
|
-
type: integer
|
|
60080
|
-
description: Quantity in this fulfillment
|
|
60081
|
-
example: 2
|
|
60082
|
-
required:
|
|
60083
|
-
- item_id
|
|
60084
|
-
- variant_id
|
|
60085
|
-
- quantity
|
|
60086
|
-
AdminUserRoleAssignment:
|
|
60087
|
-
type: object
|
|
60088
|
-
description: A role assignment for the current store on a staff member
|
|
60089
|
-
properties:
|
|
60090
|
-
id:
|
|
60091
|
-
type: string
|
|
60092
|
-
description: Prefixed role ID
|
|
60093
|
-
example: role_abc123
|
|
60094
|
-
name:
|
|
60095
|
-
type: string
|
|
60096
|
-
description: Role name
|
|
60097
|
-
example: admin
|
|
60098
|
-
required:
|
|
60099
|
-
- id
|
|
60100
|
-
- name
|
|
60101
|
-
AdminUserStore:
|
|
60102
|
-
type: object
|
|
60103
|
-
description: A store the staff member can access through a role assignment
|
|
60104
|
-
properties:
|
|
60105
|
-
id:
|
|
60106
|
-
type: string
|
|
60107
|
-
description: Prefixed store ID
|
|
60108
|
-
example: store_abc123
|
|
60109
|
-
name:
|
|
60110
|
-
type: string
|
|
60111
|
-
description: Store name
|
|
60112
|
-
example: My Store
|
|
60113
|
-
code:
|
|
60114
|
-
type: string
|
|
60115
|
-
description: Store code
|
|
60116
|
-
example: my-store
|
|
60117
|
-
required:
|
|
60118
|
-
- id
|
|
60119
|
-
- name
|
|
60120
|
-
- code
|
|
60121
60006
|
PreferenceSchema:
|
|
60122
60007
|
type: object
|
|
60123
60008
|
description: 'The JSON Schema (draft 2020-12) of a type''s `preferences`: one
|
|
@@ -60133,20 +60018,6 @@ components:
|
|
|
60133
60018
|
format: money
|
|
60134
60019
|
default: '0.0'
|
|
60135
60020
|
additionalProperties: false
|
|
60136
|
-
PromotionActionLineItem:
|
|
60137
|
-
type: object
|
|
60138
|
-
description: One row in a `create_line_items` action — the variant added to
|
|
60139
|
-
the order and how many
|
|
60140
|
-
properties:
|
|
60141
|
-
variant_id:
|
|
60142
|
-
type: string
|
|
60143
|
-
example: variant_abc123
|
|
60144
|
-
quantity:
|
|
60145
|
-
type: integer
|
|
60146
|
-
example: 1
|
|
60147
|
-
required:
|
|
60148
|
-
- variant_id
|
|
60149
|
-
- quantity
|
|
60150
60021
|
MeResponse:
|
|
60151
60022
|
type: object
|
|
60152
60023
|
description: Current admin user profile and serialized permissions
|
|
@@ -60596,11 +60467,37 @@ components:
|
|
|
60596
60467
|
roles:
|
|
60597
60468
|
type: array
|
|
60598
60469
|
items:
|
|
60599
|
-
|
|
60470
|
+
type: object
|
|
60471
|
+
properties:
|
|
60472
|
+
id:
|
|
60473
|
+
type: string
|
|
60474
|
+
description: Role ID
|
|
60475
|
+
name:
|
|
60476
|
+
type: string
|
|
60477
|
+
description: Role name, e.g. admin
|
|
60478
|
+
required:
|
|
60479
|
+
- id
|
|
60480
|
+
- name
|
|
60481
|
+
description: Role assignments on the current store
|
|
60600
60482
|
stores:
|
|
60601
60483
|
type: array
|
|
60602
60484
|
items:
|
|
60603
|
-
|
|
60485
|
+
type: object
|
|
60486
|
+
properties:
|
|
60487
|
+
id:
|
|
60488
|
+
type: string
|
|
60489
|
+
description: Store ID
|
|
60490
|
+
name:
|
|
60491
|
+
type: string
|
|
60492
|
+
description: Store name
|
|
60493
|
+
code:
|
|
60494
|
+
type: string
|
|
60495
|
+
description: Store code
|
|
60496
|
+
required:
|
|
60497
|
+
- id
|
|
60498
|
+
- name
|
|
60499
|
+
- code
|
|
60500
|
+
description: Stores the staff member can access through a role assignment
|
|
60604
60501
|
required:
|
|
60605
60502
|
- id
|
|
60606
60503
|
- email
|
|
@@ -61162,7 +61059,29 @@ components:
|
|
|
61162
61059
|
warnings:
|
|
61163
61060
|
type: array
|
|
61164
61061
|
items:
|
|
61165
|
-
|
|
61062
|
+
type: object
|
|
61063
|
+
properties:
|
|
61064
|
+
code:
|
|
61065
|
+
type: string
|
|
61066
|
+
description: Machine-readable warning code, e.g. line_item_removed
|
|
61067
|
+
message:
|
|
61068
|
+
type: string
|
|
61069
|
+
description: Human-readable warning message
|
|
61070
|
+
line_item_id:
|
|
61071
|
+
type: string
|
|
61072
|
+
description: Line item the warning is about, when there is one
|
|
61073
|
+
variant_id:
|
|
61074
|
+
type: string
|
|
61075
|
+
description: Variant the warning is about, when there is one
|
|
61076
|
+
item_index:
|
|
61077
|
+
type: number
|
|
61078
|
+
description: Position in the submitted items, for a warning raised
|
|
61079
|
+
while applying a batch of item changes
|
|
61080
|
+
required:
|
|
61081
|
+
- code
|
|
61082
|
+
- message
|
|
61083
|
+
description: Problems found with the cart, such as an item removed after
|
|
61084
|
+
a stock change
|
|
61166
61085
|
coupon_code:
|
|
61167
61086
|
type: string
|
|
61168
61087
|
nullable: true
|
|
@@ -61229,7 +61148,26 @@ components:
|
|
|
61229
61148
|
requirements:
|
|
61230
61149
|
type: array
|
|
61231
61150
|
items:
|
|
61232
|
-
|
|
61151
|
+
type: object
|
|
61152
|
+
properties:
|
|
61153
|
+
step:
|
|
61154
|
+
type: string
|
|
61155
|
+
description: Checkout step this requirement belongs to, e.g. payment
|
|
61156
|
+
field:
|
|
61157
|
+
type: string
|
|
61158
|
+
description: Field that needs to be satisfied
|
|
61159
|
+
code:
|
|
61160
|
+
type: string
|
|
61161
|
+
description: Machine-readable requirement code, e.g. order_minimum_not_met
|
|
61162
|
+
message:
|
|
61163
|
+
type: string
|
|
61164
|
+
description: Human-readable requirement message
|
|
61165
|
+
required:
|
|
61166
|
+
- step
|
|
61167
|
+
- field
|
|
61168
|
+
- code
|
|
61169
|
+
- message
|
|
61170
|
+
description: What is still missing before the cart can be completed
|
|
61233
61171
|
order_minimum:
|
|
61234
61172
|
type: string
|
|
61235
61173
|
nullable: true
|
|
@@ -63085,6 +63023,17 @@ components:
|
|
|
63085
63023
|
type: array
|
|
63086
63024
|
items:
|
|
63087
63025
|
type: object
|
|
63026
|
+
properties:
|
|
63027
|
+
id:
|
|
63028
|
+
type: string
|
|
63029
|
+
name:
|
|
63030
|
+
type: string
|
|
63031
|
+
kind:
|
|
63032
|
+
type: string
|
|
63033
|
+
required:
|
|
63034
|
+
- id
|
|
63035
|
+
- name
|
|
63036
|
+
- kind
|
|
63088
63037
|
custom_fields:
|
|
63089
63038
|
type: array
|
|
63090
63039
|
items:
|
|
@@ -65459,7 +65408,22 @@ components:
|
|
|
65459
65408
|
items:
|
|
65460
65409
|
type: array
|
|
65461
65410
|
items:
|
|
65462
|
-
|
|
65411
|
+
type: object
|
|
65412
|
+
properties:
|
|
65413
|
+
item_id:
|
|
65414
|
+
type: string
|
|
65415
|
+
description: Line item ID
|
|
65416
|
+
variant_id:
|
|
65417
|
+
type: string
|
|
65418
|
+
description: Variant ID
|
|
65419
|
+
quantity:
|
|
65420
|
+
type: number
|
|
65421
|
+
description: Quantity in this fulfillment
|
|
65422
|
+
required:
|
|
65423
|
+
- item_id
|
|
65424
|
+
- variant_id
|
|
65425
|
+
- quantity
|
|
65426
|
+
description: Which line items, and how many units of each, are in this fulfillment
|
|
65463
65427
|
deliveries:
|
|
65464
65428
|
type: array
|
|
65465
65429
|
items:
|
|
@@ -66163,7 +66127,23 @@ components:
|
|
|
66163
66127
|
schema_fields:
|
|
66164
66128
|
type: array
|
|
66165
66129
|
items:
|
|
66166
|
-
|
|
66130
|
+
type: object
|
|
66131
|
+
properties:
|
|
66132
|
+
name:
|
|
66133
|
+
type: string
|
|
66134
|
+
description: Canonical field name used in mappings, e.g. slug
|
|
66135
|
+
label:
|
|
66136
|
+
type: string
|
|
66137
|
+
description: Human-readable label
|
|
66138
|
+
required:
|
|
66139
|
+
type: boolean
|
|
66140
|
+
description: Whether the field must be mapped before processing
|
|
66141
|
+
required:
|
|
66142
|
+
- name
|
|
66143
|
+
- label
|
|
66144
|
+
- required
|
|
66145
|
+
description: Canonical columns of this import type, including per-store
|
|
66146
|
+
custom field columns
|
|
66167
66147
|
csv_headers:
|
|
66168
66148
|
type: array
|
|
66169
66149
|
items:
|
|
@@ -69176,6 +69156,11 @@ components:
|
|
|
69176
69156
|
type: string
|
|
69177
69157
|
payment_total:
|
|
69178
69158
|
type: string
|
|
69159
|
+
amount_left_to_pay:
|
|
69160
|
+
type: string
|
|
69161
|
+
description: What a new payment should be for, the amount due less the
|
|
69162
|
+
payments recorded and not yet captured. Failed, invalid and void payments
|
|
69163
|
+
don't count. Never negative.
|
|
69179
69164
|
commission_amount_total:
|
|
69180
69165
|
type: string
|
|
69181
69166
|
commission_tax_total:
|
|
@@ -69349,6 +69334,7 @@ components:
|
|
|
69349
69334
|
- created_at
|
|
69350
69335
|
- updated_at
|
|
69351
69336
|
- payment_total
|
|
69337
|
+
- amount_left_to_pay
|
|
69352
69338
|
- commission_amount_total
|
|
69353
69339
|
- commission_tax_total
|
|
69354
69340
|
- commission_total
|
|
@@ -70946,7 +70932,17 @@ components:
|
|
|
70946
70932
|
line_items:
|
|
70947
70933
|
type: array
|
|
70948
70934
|
items:
|
|
70949
|
-
|
|
70935
|
+
type: object
|
|
70936
|
+
properties:
|
|
70937
|
+
variant_id:
|
|
70938
|
+
type: string
|
|
70939
|
+
quantity:
|
|
70940
|
+
type: number
|
|
70941
|
+
required:
|
|
70942
|
+
- variant_id
|
|
70943
|
+
- quantity
|
|
70944
|
+
description: 'Rows of a `create_line_items` action: the variant added to
|
|
70945
|
+
the order and how many'
|
|
70950
70946
|
nullable: true
|
|
70951
70947
|
required:
|
|
70952
70948
|
- id
|
|
@@ -84471,7 +84467,8 @@ components:
|
|
|
84471
84467
|
format: decimal
|
|
84472
84468
|
pattern: "^-?\\d+(\\.\\d+)?$"
|
|
84473
84469
|
description: Captures part of the authorized amount. Defaults to all of
|
|
84474
|
-
it.
|
|
84470
|
+
it, or to what the order still owes when that is less. A capture another
|
|
84471
|
+
payment is waiting on its provider to confirm counts as paid.
|
|
84475
84472
|
PaymentCreateParams:
|
|
84476
84473
|
type: object
|
|
84477
84474
|
properties:
|
|
@@ -84481,7 +84478,8 @@ components:
|
|
|
84481
84478
|
type: string
|
|
84482
84479
|
format: decimal
|
|
84483
84480
|
pattern: "^-?\\d+(\\.\\d+)?$"
|
|
84484
|
-
description: Defaults to the order
|
|
84481
|
+
description: Defaults to what the order still owes after the payments already
|
|
84482
|
+
recorded on it (failed, invalid and void payments are not counted).
|
|
84485
84483
|
source_id:
|
|
84486
84484
|
type: string
|
|
84487
84485
|
description: A saved payment source of the order's customer (a credit card),
|