Skip to content

Commit bf20af0

Browse files
committed
Replaced products by plans
1 parent 9136226 commit bf20af0

File tree

2 files changed

+138
-102
lines changed

2 files changed

+138
-102
lines changed
Lines changed: 133 additions & 95 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,94 @@
11
{
2-
"additionalProperties": false,
2+
"type": "object",
33
"properties": {
4-
"collection_id": {
4+
"id": {
55
"type": [
66
"null",
77
"integer"
88
]
99
},
10+
"channel_settings": {
11+
"type": [
12+
"null",
13+
"object"
14+
],
15+
"properties": {
16+
"api": {
17+
"type": [
18+
"null",
19+
"object"
20+
],
21+
"properties": {
22+
"display": {
23+
"type": [
24+
"null",
25+
"boolean"
26+
]
27+
}
28+
}
29+
},
30+
"customer_portal": {
31+
"type": [
32+
"null",
33+
"object"
34+
],
35+
"properties": {
36+
"display": {
37+
"type": [
38+
"null",
39+
"boolean"
40+
]
41+
}
42+
}
43+
},
44+
"merchant_portal": {
45+
"type": [
46+
"null",
47+
"object"
48+
],
49+
"properties": {
50+
"display": {
51+
"type": [
52+
"null",
53+
"boolean"
54+
]
55+
}
56+
}
57+
},
58+
"checkout_page": {
59+
"type": [
60+
"null",
61+
"object"
62+
],
63+
"properties": {
64+
"display": {
65+
"type": [
66+
"null",
67+
"boolean"
68+
]
69+
}
70+
}
71+
}
72+
}
73+
},
1074
"created_at": {
1175
"type": [
1276
"null",
13-
"date-time"
14-
]
77+
"string"
78+
],
79+
"format": "date-time"
80+
},
81+
"deleted_at": {
82+
"type": [
83+
"null",
84+
"string"
85+
],
86+
"format": "date-time"
1587
},
1688
"discount_amount": {
17-
"multipleOf": 1e-08,
1889
"type": [
1990
"null",
20-
"number"
91+
"string"
2192
]
2293
},
2394
"discount_type": {
@@ -26,110 +97,94 @@
2697
"string"
2798
]
2899
},
29-
"handle": {
100+
"external_plan_group_id": {
30101
"type": [
31102
"null",
32103
"string"
33104
]
34105
},
35-
"id": {
106+
"external_plan_id": {
36107
"type": [
37108
"null",
38-
"integer"
109+
"string"
39110
]
40111
},
41-
"images": {
42-
"additionalProperties": false,
112+
"external_plan_name": {
113+
"type": [
114+
"null",
115+
"string"
116+
]
117+
},
118+
"external_product_id": {
119+
"type": [
120+
"null",
121+
"object"
122+
],
43123
"properties": {
44-
"large": {
45-
"type": [
46-
"null",
47-
"string"
48-
]
49-
},
50-
"medium": {
51-
"type": [
52-
"null",
53-
"string"
54-
]
55-
},
56-
"original": {
124+
"ecommerce": {
57125
"type": [
58126
"null",
59127
"string"
60128
]
129+
}
130+
}
131+
},
132+
"external_variant_ids": {
133+
"anyOf": [
134+
{
135+
"type": "array",
136+
"items": {
137+
"type": "string"
138+
}
61139
},
62-
"small": {
63-
"type": [
64-
"null",
65-
"string"
66-
]
140+
{
141+
"type": "null"
67142
}
68-
},
69-
"type": [
70-
"null",
71-
"object"
72143
]
73144
},
74-
"product_id": {
145+
"has_variant_restrictions": {
75146
"type": [
76147
"null",
77-
"integer"
148+
"boolean"
78149
]
79150
},
80-
"shopify_product_id": {
151+
"sort_order": {
81152
"type": [
82153
"null",
83154
"integer"
84155
]
85156
},
86-
"subscription_defaults": {
87-
"additionalProperties": false,
157+
"subscription_preferences": {
158+
"type": [
159+
"null",
160+
"object"
161+
],
88162
"properties": {
89-
"charge_interval_frequency": {
90-
"type": [
91-
"null",
92-
"integer"
93-
]
94-
},
95-
"cutoff_day_of_month": {
163+
"apply_cutoff_date_to_checkout": {
96164
"type": [
97165
"null",
98-
"string"
166+
"boolean"
99167
]
100168
},
101-
"cutoff_day_of_week": {
169+
"charge_interval_frequency": {
102170
"type": [
103171
"null",
104-
"string"
172+
"integer"
105173
]
106174
},
107-
"expire_after_specific_number_of_charges": {
175+
"cutoff_day_of_month": {
108176
"type": [
109177
"null",
110178
"integer"
111179
]
112180
},
113-
"handle": {
181+
"cutoff_day_of_week": {
114182
"type": [
115183
"null",
116-
"string"
117-
]
118-
},
119-
"modifiable_properties": {
120-
"anyOf": [
121-
{
122-
"items": {
123-
"type": "string"
124-
},
125-
"type": "array"
126-
},
127-
{
128-
"type": "null"
129-
}
184+
"integer"
130185
]
131186
},
132-
"number_charges_until_expiration": {
187+
"expire_after_specific_number_of_charges": {
133188
"type": [
134189
"null",
135190
"integer"
@@ -138,13 +193,13 @@
138193
"order_day_of_month": {
139194
"type": [
140195
"null",
141-
"string"
196+
"integer"
142197
]
143198
},
144199
"order_day_of_week": {
145200
"type": [
146201
"null",
147-
"string"
202+
"integer"
148203
]
149204
},
150205
"order_interval_frequency": {
@@ -153,38 +208,21 @@
153208
"integer"
154209
]
155210
},
156-
"order_interval_frequency_options": {
157-
"anyOf": [
158-
{
159-
"items": {
160-
"type": "string"
161-
},
162-
"type": "array"
163-
},
164-
{
165-
"type": "null"
166-
}
167-
]
168-
},
169-
"order_interval_unit": {
170-
"type": [
171-
"null",
172-
"string"
173-
]
174-
},
175-
"storefront_purchase_options": {
211+
"interval_unit": {
176212
"type": [
177213
"null",
178214
"string"
179215
]
180216
}
181-
},
217+
}
218+
},
219+
"title": {
182220
"type": [
183221
"null",
184-
"object"
222+
"string"
185223
]
186224
},
187-
"title": {
225+
"type": {
188226
"type": [
189227
"null",
190228
"string"
@@ -193,9 +231,9 @@
193231
"updated_at": {
194232
"type": [
195233
"null",
196-
"date-time"
197-
]
234+
"string"
235+
],
236+
"format": "date-time"
198237
}
199-
},
200-
"type": "object"
201-
}
238+
}
239+
}

_data/taps/schemas/recharge/v2/recharge-v2-tables.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -119,19 +119,17 @@ tables:
119119
replication-method: Key-based Incremental
120120
primary-key: id
121121
replication-key: updated_at
122-
- name: products
123-
description: 'The `{{ table.name }}` table contains info about your products. This
124-
table uses the 2021-01 API version.
122+
- name: plans
123+
description: 'The `{{ table.name }}` table contains info about your plans.
125124
126125
'
127126
links:
128-
doc-link: https://developer.rechargepayments.com/2021-11/products/products_list
129-
singer-schema: https://github.com/singer-io/tap-recharge/tree/master/tap_recharge/schemas/products.json
130-
api-method: https://developer.rechargepayments.com/2021-01/products/products_list
127+
doc-link: https://developer.rechargepayments.com/2021-11/plans/plans_list
128+
singer-schema: https://github.com/singer-io/tap-recharge/blob/master/tap_recharge/schemas/plans.json
129+
api-method: https://developer.rechargepayments.com/2021-11/plans/plans_list
131130
table-details:
132131
replication-method: Key-based Incremental
133132
primary-key: id
134-
replication-key: updated_at
135133
- name: store
136134
description: 'The `{{ table.name }}` table contains info about your store.
137135

0 commit comments

Comments
 (0)