forked from mvanhorn/printing-press-library
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathspec.yaml
More file actions
886 lines (886 loc) · 21.4 KB
/
Copy pathspec.yaml
File metadata and controls
886 lines (886 loc) · 21.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
openapi: 3.0.0
info:
title: Lemon Squeezy API
description: |
The Lemon Squeezy API is a REST API using the JSON:API specification.
Authentication uses HTTP Bearer tokens.
Create an API key at https://app.lemonsqueezy.com/settings/api
and pass it as `Authorization: Bearer YOUR_KEY` header.
Base URL: https://api.lemonsqueezy.com
Content type: application/vnd.api+json
version: '1.0.0'
servers:
- url: https://api.lemonsqueezy.com
components:
securitySchemes:
bearerAuth:
type: http
scheme: bearer
bearerFormat: JWT
description: |
Lemon Squeezy API key (Bearer token). Create one at
https://app.lemonsqueezy.com/settings/api.
x-auth-env-vars:
- LEMONSQUEEZY_API_KEY
security:
- bearerAuth: []
tags:
- name: Users
- name: Stores
- name: Customers
- name: Products
- name: Variants
- name: Prices
- name: Files
- name: Orders
- name: OrderItems
- name: Affiliates
- name: Subscriptions
- name: SubscriptionItems
- name: SubscriptionInvoices
- name: UsageRecords
- name: Discounts
- name: DiscountRedemptions
- name: LicenseKeys
- name: LicenseKeyInstances
- name: Checkouts
- name: Webhooks
- name: Health
paths:
/v1/users/me:
get:
operationId: users_me
tags:
- Users
- Users
summary: Lemon Squeezy Retrieve the authenticated user
responses:
'200':
description: Successful response
content:
application/json: {}
/v1/stores/{id}:
parameters:
- in: path
name: id
required: true
description: Resource ID
schema:
type: string
get:
operationId: stores_get
tags:
- Stores
summary: Lemon Squeezy Retrieve a store
responses:
'200':
description: Successful response
content:
application/json: {}
/v1/stores:
get:
operationId: stores_list
tags:
- Stores
summary: Lemon Squeezy List all stores
responses:
'200':
description: Successful response
content:
application/json: {}
/v1/customers/{id}:
parameters:
- in: path
name: id
required: true
description: Resource ID
schema:
type: string
get:
operationId: customers_get
tags:
- Customers
summary: Lemon Squeezy Retrieve a customer
responses:
'200':
description: Successful response
content:
application/json: {}
/v1/customers:
get:
operationId: customers_list
tags:
- Customers
summary: Lemon Squeezy List all customers
responses:
'200':
description: Successful response
content:
application/json: {}
/v1/products/{id}:
parameters:
- in: path
name: id
required: true
description: Resource ID
schema:
type: string
get:
operationId: products_get
tags:
- Products
summary: Lemon Squeezy Retrieve a product
responses:
'200':
description: Successful response
content:
application/json: {}
/v1/products:
get:
operationId: products_list
tags:
- Products
summary: Lemon Squeezy List all products
responses:
'200':
description: Successful response
content:
application/json: {}
/v1/variants/{id}:
parameters:
- in: path
name: id
required: true
description: Resource ID
schema:
type: string
get:
operationId: variants_get
tags:
- Variants
summary: Lemon Squeezy Retrieve a variant
responses:
'200':
description: Successful response
content:
application/json: {}
/v1/variants:
get:
operationId: variants_list
tags:
- Variants
summary: Lemon Squeezy List all variants
responses:
'200':
description: Successful response
content:
application/json: {}
/v1/prices/{id}:
parameters:
- in: path
name: id
required: true
description: Resource ID
schema:
type: string
get:
operationId: prices_get
tags:
- Prices
summary: Lemon Squeezy Retrieve a price
responses:
'200':
description: Successful response
content:
application/json: {}
/v1/prices:
get:
operationId: prices_list
tags:
- Prices
summary: Lemon Squeezy List all prices
responses:
'200':
description: Successful response
content:
application/json: {}
/v1/files/{id}:
parameters:
- in: path
name: id
required: true
description: Resource ID
schema:
type: string
get:
operationId: files_get
tags:
- Files
summary: Lemon Squeezy Retrieve a file
responses:
'200':
description: Successful response
content:
application/json: {}
/v1/files:
get:
operationId: files_list
tags:
- Files
summary: Lemon Squeezy List all files
responses:
'200':
description: Successful response
content:
application/json: {}
/v1/orders/{id}:
parameters:
- in: path
name: id
required: true
description: Resource ID
schema:
type: string
get:
operationId: orders_get
tags:
- Orders
summary: Lemon Squeezy Retrieve an order
responses:
'200':
description: Successful response
content:
application/json: {}
/v1/orders:
get:
operationId: orders_list
tags:
- Orders
summary: Lemon Squeezy List all orders
responses:
'200':
description: Successful response
content:
application/json: {}
/v1/affiliates/{id}:
parameters:
- in: path
name: id
required: true
description: Resource ID
schema:
type: string
get:
operationId: affiliates_get
tags:
- Affiliates
summary: Lemon Squeezy Retrieve an affiliate
responses:
'200':
description: Successful response
content:
application/json: {}
/v1/affiliates:
get:
operationId: affiliates_list
tags:
- Affiliates
summary: Lemon Squeezy List all affiliates
responses:
'200':
description: Successful response
content:
application/json: {}
/v1/order-items/{id}:
parameters:
- in: path
name: id
required: true
description: Resource ID
schema:
type: string
get:
operationId: order_items_get
tags:
- Items
- Order
summary: Lemon Squeezy Retrieve an order item
responses:
'200':
description: Successful response
content:
application/json: {}
/v1/order-items:
get:
operationId: order_items_list
tags:
- Items
- Order
summary: Lemon Squeezy List all order items
responses:
'200':
description: Successful response
content:
application/json: {}
/v1/subscriptions/{id}:
parameters:
- in: path
name: id
required: true
description: Resource ID
schema:
type: string
get:
operationId: subscriptions_get
tags:
- Subscriptions
summary: Lemon Squeezy Retrieve a subscription
responses:
'200':
description: Successful response
content:
application/json: {}
patch:
operationId: subscriptions_update
tags:
- Subscriptions
summary: Lemon Squeezy Update a subscription
requestBody:
content:
application/json:
schema:
type: object
example:
data:
type: subscriptions
id: '1'
attributes:
variant_id: 1
responses:
'200':
description: Successful response
content:
application/json: {}
delete:
operationId: subscriptions_delete
tags:
- Subscriptions
summary: Lemon Squeezy Cancel a Subscription
responses:
'200':
description: Successful response
content:
application/json: {}
/v1/subscriptions:
get:
operationId: subscriptions_list
tags:
- Subscriptions
summary: Lemon Squeezy List all subscriptions
responses:
'200':
description: Successful response
content:
application/json: {}
/v1/subscription-items/{id}:
parameters:
- in: path
name: id
required: true
description: Resource ID
schema:
type: string
get:
operationId: subscription_items_get
tags:
- Items
- Subscription
summary: Lemon Squeezy Retrieve a subscription item
responses:
'200':
description: Successful response
content:
application/json: {}
patch:
operationId: subscription_items_update
tags:
- Items
- Subscription
summary: Lemon Squeezy Update a subscription item
requestBody:
content:
application/json:
schema:
type: object
example:
data:
type: subscription-items
id: '1'
attributes:
quantity: 5
responses:
'200':
description: Successful response
content:
application/json: {}
/v1/subscription-items:
get:
operationId: subscription_items_list
tags:
- Items
- Subscription
summary: Lemon Squeezy List all subscription items
responses:
'200':
description: Successful response
content:
application/json: {}
/v1/subscription-items/{id}/current-usage:
parameters:
- in: path
name: id
required: true
description: Resource ID
schema:
type: string
get:
operationId: subscription_items_current_usage_get
tags:
- SubscriptionItems
- Items
- Subscription
- Usage
summary: Lemon Squeezy Retrieve a subscription items current usage
responses:
'200':
description: Successful response
content:
application/json: {}
/v1/subscription-invoices/{id}:
parameters:
- in: path
name: id
required: true
description: Resource ID
schema:
type: string
get:
operationId: subscription_invoices_get
tags:
- Invoices
- Subscription
summary: Lemon Squeezy Retrieve a subscription invoice
responses:
'200':
description: Successful response
content:
application/json: {}
/v1/subscription-invoices:
get:
operationId: subscription_invoices_list
tags:
- Invoices
- Subscription
summary: Lemon Squeezy List all subscription invoices
responses:
'200':
description: Successful response
content:
application/json: {}
/v1/usage-records/{id}:
parameters:
- in: path
name: id
required: true
description: Resource ID
schema:
type: string
get:
operationId: usage_records_get
tags:
- Records
- Usage
summary: Lemon Squeezy Retrieve a usage-record
responses:
'200':
description: Successful response
content:
application/json: {}
/v1/usage-records:
get:
operationId: usage_records_list
tags:
- Records
- Usage
summary: Lemon Squeezy List all usage records
responses:
'200':
description: Successful response
content:
application/json: {}
post:
operationId: usage_records_create
tags:
- Records
- Usage
summary: Lemon Squeezy Create a usage record
requestBody:
content:
application/json:
schema:
type: object
example:
data:
type: usage-records
attributes:
quantity: 1
action: increment
relationships:
subscription-item:
data:
type: subscription-items
id: '1'
responses:
'200':
description: Successful response
content:
application/json: {}
/v1/discounts/{id}:
parameters:
- in: path
name: id
required: true
description: Resource ID
schema:
type: string
get:
operationId: discounts_get
tags:
- Discounts
summary: Lemon Squeezy Retrieve a discount
responses:
'200':
description: Successful response
content:
application/json: {}
delete:
operationId: discounts_delete
tags:
- Discounts
summary: Lemon Squeezy Delete a discount
responses:
'200':
description: Successful response
content:
application/json: {}
/v1/discounts:
get:
operationId: discounts_list
tags:
- Discounts
summary: Lemon Squeezy List all discounts
responses:
'200':
description: Successful response
content:
application/json: {}
post:
operationId: discounts_create
tags:
- Discounts
summary: Lemon Squeezy Create a discount
requestBody:
content:
application/json:
schema:
type: object
example:
data:
type: discounts
attributes:
name: 10%
code: 10PERC
amount: 10
amount_type: percent
relationships:
store:
data:
type: stores
id: '1'
responses:
'200':
description: Successful response
content:
application/json: {}
/v1/discount-redemptions/{id}:
parameters:
- in: path
name: id
required: true
description: Resource ID
schema:
type: string
get:
operationId: discount_redemptions_get
tags:
- Discount
- Redemptions
summary: Lemon Squeezy Retrieve a discount redemption
responses:
'200':
description: Successful response
content:
application/json: {}
/v1/discount-redemptions:
get:
operationId: discount_redemptions_list
tags:
- Discount
- Redemptions
summary: Lemon Squeezy List all discount redemptions
responses:
'200':
description: Successful response
content:
application/json: {}
/v1/license-keys/{id}:
parameters:
- in: path
name: id
required: true
description: Resource ID
schema:
type: string
get:
operationId: license_keys_get
tags:
- Keys
- License
summary: Lemon Squeezy Retrieve a license key
responses:
'200':
description: Successful response
content:
application/json: {}
/v1/license-keys:
get:
operationId: license_keys_list
tags:
- Keys
- License
summary: Lemon Squeezy List all license keys
responses:
'200':
description: Successful response
content:
application/json: {}
/v1/license-key-instances/{id}:
parameters:
- in: path
name: id
required: true
description: Resource ID
schema:
type: string
get:
operationId: license_key_instances_get
tags:
- Instances
- Keys
- License
summary: Lemon Squeezy Retrieve a license key instance
responses:
'200':
description: Successful response
content:
application/json: {}
/v1/license-key-instances:
get:
operationId: license_key_instances_list
tags:
- Instances
- Keys
- License
summary: Lemon Squeezy List all license key instances
responses:
'200':
description: Successful response
content:
application/json: {}
/v1/checkouts/{id}:
parameters:
- in: path
name: id
required: true
description: Resource ID
schema:
type: string
get:
operationId: checkouts_get
tags:
- Checkouts
- B6cd
- Checkouts
summary: Lemon Squeezy Retrieve a checkout
responses:
'200':
description: Successful response
content:
application/json: {}
/v1/checkouts:
get:
operationId: checkouts_list
tags:
- Checkouts
summary: Lemon Squeezy List all checkouts
responses:
'200':
description: Successful response
content:
application/json: {}
post:
operationId: checkouts_create
tags:
- Checkouts
summary: Lemon Squeezy Create a checkout
requestBody:
content:
application/json:
schema:
type: object
example:
data:
type: checkouts
relationships:
store:
data:
type: stores
id: '1'
variant:
data:
type: variants
id: '1'
attributes:
custom_price: 2000
responses:
'200':
description: Successful response
content:
application/json: {}
/v1/webhooks/{id}:
parameters:
- in: path
name: id
required: true
description: Resource ID
schema:
type: string
get:
operationId: webhooks_get
tags:
- Webhooks
summary: Lemon Squeezy Retrieve a webhook
responses:
'200':
description: Successful response
content:
application/json: {}
patch:
operationId: webhooks_update
tags:
- Webhooks
summary: Lemon Squeezy Update a webhook
requestBody:
content:
application/json:
schema:
type: object
example:
data:
type: webhooks
id: '1'
attributes:
events:
- order_created
- order_refunded
- subscription_created
- subscription_updated
- subscription_expired
responses:
'200':
description: Successful response
content:
application/json: {}
delete:
operationId: webhooks_delete
tags:
- Webhooks
summary: Lemon Squeezy Delete a webhook
responses:
'200':
description: Successful response
content:
application/json: {}
/v1/webhooks:
get:
operationId: webhooks_list
tags:
- Webhooks
summary: Lemon Squeezy List all webhooks
responses:
'200':
description: Successful response
content:
application/json: {}
post:
operationId: webhooks_create
tags:
- Webhooks
summary: Lemon Squeezy Create a webhook
requestBody:
content:
application/json:
schema:
type: object
example:
data:
type: webhooks
attributes:
url: https://mysite.com/webhooks/
events:
- order_created
- subscription_created
- subscription_updated
- subscription_expired
secret: SIGNING_SECRET
relationships:
store:
data:
type: stores
id: '1'
responses:
'200':
description: Successful response
content:
application/json: {}
/v1/health:
get:
operationId: health_check
tags:
- Health
summary: Lemon Squeezy Health
responses:
'200':
description: Successful response
content:
application/json: {}
/v1/404:
get:
operationId: health_404
tags: []
summary: 'Lemon Squeezy 404'
responses:
'200':
description: Successful response
content:
application/json: {}