zip_money 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (124) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +7 -0
  3. data/Gemfile.lock +69 -0
  4. data/README.md +128 -0
  5. data/Rakefile +8 -0
  6. data/docs/Address.md +15 -0
  7. data/docs/Authority.md +9 -0
  8. data/docs/CaptureChargeRequest.md +8 -0
  9. data/docs/Charge.md +17 -0
  10. data/docs/ChargeCollection.md +8 -0
  11. data/docs/ChargeOrder.md +11 -0
  12. data/docs/ChargesApi.md +307 -0
  13. data/docs/Checkout.md +18 -0
  14. data/docs/CheckoutConfiguration.md +8 -0
  15. data/docs/CheckoutFeatures.md +8 -0
  16. data/docs/CheckoutFeaturesTokenisation.md +8 -0
  17. data/docs/CheckoutOrder.md +13 -0
  18. data/docs/CheckoutsApi.md +119 -0
  19. data/docs/CreateChargeRequest.md +14 -0
  20. data/docs/CreateCheckoutRequest.md +13 -0
  21. data/docs/CreateCheckoutRequestFeatures.md +8 -0
  22. data/docs/CreateCheckoutRequestFeaturesTokenisation.md +8 -0
  23. data/docs/CreateRefundRequest.md +11 -0
  24. data/docs/CreateTokenRequest.md +8 -0
  25. data/docs/Customer.md +15 -0
  26. data/docs/CustomersApi.md +96 -0
  27. data/docs/ErrorResponse.md +8 -0
  28. data/docs/ErrorResponseError.md +10 -0
  29. data/docs/ErrorResponseErrorDetails.md +9 -0
  30. data/docs/InlineResponse200.md +8 -0
  31. data/docs/Metadata.md +7 -0
  32. data/docs/OrderItem.md +16 -0
  33. data/docs/OrderShipping.md +10 -0
  34. data/docs/OrderShippingTracking.md +10 -0
  35. data/docs/Refund.md +13 -0
  36. data/docs/RefundsApi.md +181 -0
  37. data/docs/SettlementsApi.md +96 -0
  38. data/docs/Shopper.md +17 -0
  39. data/docs/ShopperStatistics.md +16 -0
  40. data/docs/Token.md +11 -0
  41. data/docs/TokensApi.md +66 -0
  42. data/lib/zip_money.rb +68 -0
  43. data/lib/zip_money/api/charges_api.rb +301 -0
  44. data/lib/zip_money/api/checkouts_api.rb +120 -0
  45. data/lib/zip_money/api/customers_api.rb +116 -0
  46. data/lib/zip_money/api/refunds_api.rb +181 -0
  47. data/lib/zip_money/api/settlements_api.rb +116 -0
  48. data/lib/zip_money/api/tokens_api.rb +70 -0
  49. data/lib/zip_money/api_client.rb +386 -0
  50. data/lib/zip_money/api_error.rb +31 -0
  51. data/lib/zip_money/configuration.rb +238 -0
  52. data/lib/zip_money/models/address.rb +413 -0
  53. data/lib/zip_money/models/authority.rb +235 -0
  54. data/lib/zip_money/models/capture_charge_request.rb +206 -0
  55. data/lib/zip_money/models/charge.rb +369 -0
  56. data/lib/zip_money/models/charge_collection.rb +188 -0
  57. data/lib/zip_money/models/charge_order.rb +250 -0
  58. data/lib/zip_money/models/checkout.rb +344 -0
  59. data/lib/zip_money/models/checkout_configuration.rb +187 -0
  60. data/lib/zip_money/models/checkout_features.rb +181 -0
  61. data/lib/zip_money/models/checkout_features_tokenisation.rb +184 -0
  62. data/lib/zip_money/models/checkout_order.rb +299 -0
  63. data/lib/zip_money/models/create_charge_request.rb +289 -0
  64. data/lib/zip_money/models/create_checkout_request.rb +272 -0
  65. data/lib/zip_money/models/create_checkout_request_features.rb +181 -0
  66. data/lib/zip_money/models/create_checkout_request_features_tokenisation.rb +189 -0
  67. data/lib/zip_money/models/create_refund_request.rb +246 -0
  68. data/lib/zip_money/models/create_token_request.rb +186 -0
  69. data/lib/zip_money/models/customer.rb +310 -0
  70. data/lib/zip_money/models/error_response.rb +181 -0
  71. data/lib/zip_money/models/error_response_error.rb +211 -0
  72. data/lib/zip_money/models/error_response_error_details.rb +190 -0
  73. data/lib/zip_money/models/inline_response_200.rb +188 -0
  74. data/lib/zip_money/models/metadata.rb +172 -0
  75. data/lib/zip_money/models/order_item.rb +333 -0
  76. data/lib/zip_money/models/order_shipping.rb +200 -0
  77. data/lib/zip_money/models/order_shipping_tracking.rb +247 -0
  78. data/lib/zip_money/models/refund.rb +252 -0
  79. data/lib/zip_money/models/shopper.rb +339 -0
  80. data/lib/zip_money/models/shopper_statistics.rb +295 -0
  81. data/lib/zip_money/models/token.rb +228 -0
  82. data/lib/zip_money/version.rb +8 -0
  83. data/spec/api/charges_api_spec.rb +114 -0
  84. data/spec/api/checkouts_api_spec.rb +54 -0
  85. data/spec/api/customers_api_spec.rb +51 -0
  86. data/spec/api/refunds_api_spec.rb +67 -0
  87. data/spec/api/settlements_api_spec.rb +51 -0
  88. data/spec/api/tokens_api_spec.rb +41 -0
  89. data/spec/api_client_spec.rb +219 -0
  90. data/spec/configuration_spec.rb +50 -0
  91. data/spec/models/address_spec.rb +77 -0
  92. data/spec/models/authority_spec.rb +45 -0
  93. data/spec/models/capture_charge_request_spec.rb +35 -0
  94. data/spec/models/charge_collection_spec.rb +35 -0
  95. data/spec/models/charge_order_spec.rb +53 -0
  96. data/spec/models/charge_spec.rb +93 -0
  97. data/spec/models/checkout_configuration_spec.rb +35 -0
  98. data/spec/models/checkout_features_spec.rb +35 -0
  99. data/spec/models/checkout_features_tokenisation_spec.rb +35 -0
  100. data/spec/models/checkout_order_spec.rb +65 -0
  101. data/spec/models/checkout_spec.rb +103 -0
  102. data/spec/models/create_charge_request_spec.rb +75 -0
  103. data/spec/models/create_checkout_request_features_spec.rb +35 -0
  104. data/spec/models/create_checkout_request_features_tokenisation_spec.rb +35 -0
  105. data/spec/models/create_checkout_request_spec.rb +69 -0
  106. data/spec/models/create_refund_request_spec.rb +53 -0
  107. data/spec/models/create_token_request_spec.rb +35 -0
  108. data/spec/models/customer_spec.rb +81 -0
  109. data/spec/models/error_response_error_details_spec.rb +41 -0
  110. data/spec/models/error_response_error_spec.rb +47 -0
  111. data/spec/models/error_response_spec.rb +35 -0
  112. data/spec/models/inline_response_200_spec.rb +35 -0
  113. data/spec/models/metadata_spec.rb +29 -0
  114. data/spec/models/order_item_spec.rb +87 -0
  115. data/spec/models/order_shipping_spec.rb +47 -0
  116. data/spec/models/order_shipping_tracking_spec.rb +47 -0
  117. data/spec/models/refund_spec.rb +65 -0
  118. data/spec/models/shopper_spec.rb +92 -0
  119. data/spec/models/shopper_statistics_spec.rb +86 -0
  120. data/spec/models/token_spec.rb +52 -0
  121. data/spec/payload_helper.rb +96 -0
  122. data/spec/spec_helper.rb +104 -0
  123. data/zip_money.gemspec +38 -0
  124. metadata +380 -0
@@ -0,0 +1,10 @@
1
+ # ZipMoney::OrderShippingTracking
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **uri** | **String** | | [optional]
7
+ **number** | **String** | | [optional]
8
+ **carrier** | **String** | | [optional]
9
+
10
+
@@ -0,0 +1,13 @@
1
+ # ZipMoney::Refund
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **id** | **String** | The id of the refund |
7
+ **charge_id** | **String** | The original charge that relates to this refund | [optional]
8
+ **reason** | **String** | The reason for the refund |
9
+ **amount** | **Float** | The amount that was refunded |
10
+ **created** | **DateTime** | The date the refund was created |
11
+ **metadata** | **Object** | Any additional metadata | [optional]
12
+
13
+
@@ -0,0 +1,181 @@
1
+ # ZipMoney::RefundsApi
2
+
3
+ All URIs are relative to *https://api.sandbox.zipmoney.com.au/merchant/v1*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**refunds_create**](RefundsApi.md#refunds_create) | **POST** /refunds | Create a refund
8
+ [**refunds_list**](RefundsApi.md#refunds_list) | **GET** /refunds | List refunds
9
+ [**refunds_retrieve**](RefundsApi.md#refunds_retrieve) | **GET** /refunds/{id} | Retrieve a refund
10
+
11
+
12
+ # **refunds_create**
13
+ > Refund refunds_create(opts)
14
+
15
+ Create a refund
16
+
17
+ Creates a refund for a previously authorised or captured charge. See #model:xWJer4QQyRumRi9LD for more information. This endpoint will return 201 or otherwise 402 if unable to perform the refund. | Error code | Description | |------------------------------------|--------------------------------------------------------------------------------------------------| | amount_invalid | The refund amount is greater than the remaining captured total | | invalid_state | 1. The charge is already fully refunded |
18
+
19
+ ### Example
20
+ ```ruby
21
+ # load the gem
22
+ require 'zip_money'
23
+ # setup authorization
24
+ ZipMoney.configure do |config|
25
+ # Configure API key authorization: Authorization
26
+ config.api_key['Authorization'] = 'YOUR API KEY'
27
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
28
+ #config.api_key_prefix['Authorization'] = 'Bearer'
29
+ end
30
+
31
+ api_instance = ZipMoney::RefundsApi.new
32
+
33
+ opts = {
34
+ body: ZipMoney::CreateRefundRequest.new, # CreateRefundRequest |
35
+ idempotency_key: "idempotency_key_example" # String | The unique idempotency key.
36
+ }
37
+
38
+ begin
39
+ #Create a refund
40
+ result = api_instance.refunds_create(opts)
41
+ p result
42
+ rescue ZipMoney::ApiError => e
43
+ puts "Exception when calling RefundsApi->refunds_create: #{e}"
44
+ end
45
+ ```
46
+
47
+ ### Parameters
48
+
49
+ Name | Type | Description | Notes
50
+ ------------- | ------------- | ------------- | -------------
51
+ **body** | [**CreateRefundRequest**](CreateRefundRequest.md)| | [optional]
52
+ **idempotency_key** | **String**| The unique idempotency key. | [optional]
53
+
54
+ ### Return type
55
+
56
+ [**Refund**](Refund.md)
57
+
58
+ ### Authorization
59
+
60
+ [Authorization](../README.md#Authorization)
61
+
62
+ ### HTTP request headers
63
+
64
+ - **Content-Type**: application/json
65
+ - **Accept**: application/javascript
66
+
67
+
68
+
69
+ # **refunds_list**
70
+ > Array<InlineResponse200> refunds_list(opts)
71
+
72
+ List refunds
73
+
74
+ List all refunds
75
+
76
+ ### Example
77
+ ```ruby
78
+ # load the gem
79
+ require 'zip_money'
80
+ # setup authorization
81
+ ZipMoney.configure do |config|
82
+ # Configure API key authorization: Authorization
83
+ config.api_key['Authorization'] = 'YOUR API KEY'
84
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
85
+ #config.api_key_prefix['Authorization'] = 'Bearer'
86
+ end
87
+
88
+ api_instance = ZipMoney::RefundsApi.new
89
+
90
+ opts = {
91
+ charge_id: "charge_id_example", # String |
92
+ skip: 0, # Integer | Number of items to skip when paging
93
+ limit: 100 # Integer | Number of items to retrieve when paging
94
+ }
95
+
96
+ begin
97
+ #List refunds
98
+ result = api_instance.refunds_list(opts)
99
+ p result
100
+ rescue ZipMoney::ApiError => e
101
+ puts "Exception when calling RefundsApi->refunds_list: #{e}"
102
+ end
103
+ ```
104
+
105
+ ### Parameters
106
+
107
+ Name | Type | Description | Notes
108
+ ------------- | ------------- | ------------- | -------------
109
+ **charge_id** | **String**| | [optional]
110
+ **skip** | **Integer**| Number of items to skip when paging | [optional] [default to 0]
111
+ **limit** | **Integer**| Number of items to retrieve when paging | [optional] [default to 100]
112
+
113
+ ### Return type
114
+
115
+ [**Array<InlineResponse200>**](InlineResponse200.md)
116
+
117
+ ### Authorization
118
+
119
+ [Authorization](../README.md#Authorization)
120
+
121
+ ### HTTP request headers
122
+
123
+ - **Content-Type**: application/javascript
124
+ - **Accept**: application/javascript
125
+
126
+
127
+
128
+ # **refunds_retrieve**
129
+ > Refund refunds_retrieve(id)
130
+
131
+ Retrieve a refund
132
+
133
+ Retrieves details of a specific refund
134
+
135
+ ### Example
136
+ ```ruby
137
+ # load the gem
138
+ require 'zip_money'
139
+ # setup authorization
140
+ ZipMoney.configure do |config|
141
+ # Configure API key authorization: Authorization
142
+ config.api_key['Authorization'] = 'YOUR API KEY'
143
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
144
+ #config.api_key_prefix['Authorization'] = 'Bearer'
145
+ end
146
+
147
+ api_instance = ZipMoney::RefundsApi.new
148
+
149
+ id = "id_example" # String | The id of the refund
150
+
151
+
152
+ begin
153
+ #Retrieve a refund
154
+ result = api_instance.refunds_retrieve(id)
155
+ p result
156
+ rescue ZipMoney::ApiError => e
157
+ puts "Exception when calling RefundsApi->refunds_retrieve: #{e}"
158
+ end
159
+ ```
160
+
161
+ ### Parameters
162
+
163
+ Name | Type | Description | Notes
164
+ ------------- | ------------- | ------------- | -------------
165
+ **id** | **String**| The id of the refund |
166
+
167
+ ### Return type
168
+
169
+ [**Refund**](Refund.md)
170
+
171
+ ### Authorization
172
+
173
+ [Authorization](../README.md#Authorization)
174
+
175
+ ### HTTP request headers
176
+
177
+ - **Content-Type**: application/javascript
178
+ - **Accept**: application/javascript
179
+
180
+
181
+
@@ -0,0 +1,96 @@
1
+ # ZipMoney::SettlementsApi
2
+
3
+ All URIs are relative to *https://api.sandbox.zipmoney.com.au/merchant/v1*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**settlements_get**](SettlementsApi.md#settlements_get) | **GET** /settlements/{id} | Retrieve a settlement
8
+ [**settlements_list**](SettlementsApi.md#settlements_list) | **GET** /settlements | List settlements
9
+
10
+
11
+ # **settlements_get**
12
+ > settlements_get(id)
13
+
14
+ Retrieve a settlement
15
+
16
+ Retrieves the full transactional details of a settlement.
17
+
18
+ ### Example
19
+ ```ruby
20
+ # load the gem
21
+ require 'zip_money'
22
+
23
+ api_instance = ZipMoney::SettlementsApi.new
24
+
25
+ id = "id_example" # String | The settlement id
26
+
27
+
28
+ begin
29
+ #Retrieve a settlement
30
+ api_instance.settlements_get(id)
31
+ rescue ZipMoney::ApiError => e
32
+ puts "Exception when calling SettlementsApi->settlements_get: #{e}"
33
+ end
34
+ ```
35
+
36
+ ### Parameters
37
+
38
+ Name | Type | Description | Notes
39
+ ------------- | ------------- | ------------- | -------------
40
+ **id** | **String**| The settlement id |
41
+
42
+ ### Return type
43
+
44
+ nil (empty response body)
45
+
46
+ ### Authorization
47
+
48
+ No authorization required
49
+
50
+ ### HTTP request headers
51
+
52
+ - **Content-Type**: application/javascript
53
+ - **Accept**: application/javascript
54
+
55
+
56
+
57
+ # **settlements_list**
58
+ > settlements_list
59
+
60
+ List settlements
61
+
62
+ This endpoint will allow a merchant to view the settlements which have occured. To view detailed transaction information for a specific settlement you can use the Retrieve a settlement endpoint.
63
+
64
+ ### Example
65
+ ```ruby
66
+ # load the gem
67
+ require 'zip_money'
68
+
69
+ api_instance = ZipMoney::SettlementsApi.new
70
+
71
+ begin
72
+ #List settlements
73
+ api_instance.settlements_list
74
+ rescue ZipMoney::ApiError => e
75
+ puts "Exception when calling SettlementsApi->settlements_list: #{e}"
76
+ end
77
+ ```
78
+
79
+ ### Parameters
80
+ This endpoint does not need any parameter.
81
+
82
+ ### Return type
83
+
84
+ nil (empty response body)
85
+
86
+ ### Authorization
87
+
88
+ No authorization required
89
+
90
+ ### HTTP request headers
91
+
92
+ - **Content-Type**: application/javascript
93
+ - **Accept**: application/javascript
94
+
95
+
96
+
@@ -0,0 +1,17 @@
1
+ # ZipMoney::Shopper
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **title** | **String** | The shopper's title | [optional]
7
+ **first_name** | **String** | The shopper's first name |
8
+ **last_name** | **String** | The shopper's last name |
9
+ **middle_name** | **String** | The shopper's middle name | [optional]
10
+ **phone** | **String** | The shopper's contact phone number | [optional]
11
+ **email** | **String** | The shopper's email address |
12
+ **birth_date** | **Date** | The shopper's birth date in the form yyyy-mm-dd | [optional]
13
+ **gender** | **String** | The shopper's gender | [optional]
14
+ **statistics** | [**ShopperStatistics**](ShopperStatistics.md) | | [optional]
15
+ **billing_address** | [**Address**](Address.md) | |
16
+
17
+
@@ -0,0 +1,16 @@
1
+ # ZipMoney::ShopperStatistics
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **account_created** | **DateTime** | The time at which the shopper's account was created | [optional]
7
+ **sales_total_count** | **Integer** | The total number of separate purchases the shopper has made through the store | [optional]
8
+ **sales_total_amount** | **Float** | The total purchase amount of all orders previously captured through the store. | [optional]
9
+ **sales_avg_amount** | **Float** | The average value of sales made by the shopper through the store | [optional]
10
+ **sales_max_amount** | **Float** | The maximum purchase amount the shopper has previously purchased from the store. | [optional]
11
+ **refunds_total_amount** | **Float** | The total amount of all refunds linked to this shopper's account | [optional]
12
+ **previous_chargeback** | **BOOLEAN** | Has the shopper had a previous chargeback? | [optional]
13
+ **currency** | **String** | The currency of all all amount values | [optional]
14
+ **last_login** | **DateTime** | The date at which the shopper last logged in to your store. | [optional]
15
+
16
+
@@ -0,0 +1,11 @@
1
+ # ZipMoney::Token
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **id** | **String** | |
7
+ **value** | **String** | |
8
+ **active** | **BOOLEAN** | |
9
+ **created_date** | **DateTime** | |
10
+
11
+
@@ -0,0 +1,66 @@
1
+ # ZipMoney::TokensApi
2
+
3
+ All URIs are relative to *https://api.sandbox.zipmoney.com.au/merchant/v1*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**tokens_create**](TokensApi.md#tokens_create) | **POST** /tokens | Create token
8
+
9
+
10
+ # **tokens_create**
11
+ > Token tokens_create(opts)
12
+
13
+ Create token
14
+
15
+ Tokenises a zip account allowing a charge to be performed at a later date without direct customer involvement. In order to create a token you will first need to request customer approval by implementing one of the online checkout flows. The checkout id will then be provided as the authority when tokenising. | Error code | Description | |------------------------------------|--------------------------------------------------------------------------------------------------| | account_inoperative | The account is in arrears or closed and cannot be charged | | account_locked | The account is locked |
16
+
17
+ ### Example
18
+ ```ruby
19
+ # load the gem
20
+ require 'zip_money'
21
+ # setup authorization
22
+ ZipMoney.configure do |config|
23
+ # Configure API key authorization: Authorization
24
+ config.api_key['Authorization'] = 'YOUR API KEY'
25
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
26
+ #config.api_key_prefix['Authorization'] = 'Bearer'
27
+ end
28
+
29
+ api_instance = ZipMoney::TokensApi.new
30
+
31
+ opts = {
32
+ body: ZipMoney::CreateTokenRequest.new, # CreateTokenRequest |
33
+ idempotency_key: "idempotency_key_example" # String | The unique idempotency key.
34
+ }
35
+
36
+ begin
37
+ #Create token
38
+ result = api_instance.tokens_create(opts)
39
+ p result
40
+ rescue ZipMoney::ApiError => e
41
+ puts "Exception when calling TokensApi->tokens_create: #{e}"
42
+ end
43
+ ```
44
+
45
+ ### Parameters
46
+
47
+ Name | Type | Description | Notes
48
+ ------------- | ------------- | ------------- | -------------
49
+ **body** | [**CreateTokenRequest**](CreateTokenRequest.md)| | [optional]
50
+ **idempotency_key** | **String**| The unique idempotency key. | [optional]
51
+
52
+ ### Return type
53
+
54
+ [**Token**](Token.md)
55
+
56
+ ### Authorization
57
+
58
+ [Authorization](../README.md#Authorization)
59
+
60
+ ### HTTP request headers
61
+
62
+ - **Content-Type**: application/json
63
+ - **Accept**: application/javascript
64
+
65
+
66
+
@@ -0,0 +1,68 @@
1
+ #Merchant API
2
+ #ZipMoney Merchant API Initial build
3
+ #zipMoney Merchant API version: 2017-03-01
4
+
5
+
6
+ # Common files
7
+ require 'zip_money/api_client'
8
+ require 'zip_money/api_error'
9
+ require 'zip_money/version'
10
+ require 'zip_money/configuration'
11
+
12
+ # Models
13
+ require 'zip_money/models/address'
14
+ require 'zip_money/models/authority'
15
+ require 'zip_money/models/capture_charge_request'
16
+ require 'zip_money/models/charge'
17
+ require 'zip_money/models/charge_collection'
18
+ require 'zip_money/models/charge_order'
19
+ require 'zip_money/models/checkout'
20
+ require 'zip_money/models/checkout_configuration'
21
+ require 'zip_money/models/checkout_features'
22
+ require 'zip_money/models/checkout_features_tokenisation'
23
+ require 'zip_money/models/checkout_order'
24
+ require 'zip_money/models/create_charge_request'
25
+ require 'zip_money/models/create_checkout_request'
26
+ require 'zip_money/models/create_checkout_request_features'
27
+ require 'zip_money/models/create_checkout_request_features_tokenisation'
28
+ require 'zip_money/models/create_refund_request'
29
+ require 'zip_money/models/create_token_request'
30
+ require 'zip_money/models/customer'
31
+ require 'zip_money/models/error_response'
32
+ require 'zip_money/models/error_response_error'
33
+ require 'zip_money/models/error_response_error_details'
34
+ require 'zip_money/models/inline_response_200'
35
+ require 'zip_money/models/metadata'
36
+ require 'zip_money/models/order_item'
37
+ require 'zip_money/models/order_shipping'
38
+ require 'zip_money/models/order_shipping_tracking'
39
+ require 'zip_money/models/refund'
40
+ require 'zip_money/models/shopper'
41
+ require 'zip_money/models/shopper_statistics'
42
+ require 'zip_money/models/token'
43
+
44
+ # APIs
45
+ require 'zip_money/api/charges_api'
46
+ require 'zip_money/api/checkouts_api'
47
+ require 'zip_money/api/customers_api'
48
+ require 'zip_money/api/refunds_api'
49
+ require 'zip_money/api/settlements_api'
50
+ require 'zip_money/api/tokens_api'
51
+
52
+ module ZipMoney
53
+ class << self
54
+ # Customize default settings for the SDK using block.
55
+ # ZipMoney.configure do |config|
56
+ # config.username = "xxx"
57
+ # config.password = "xxx"
58
+ # end
59
+ # If no block given, return the default Configuration object.
60
+ def configure
61
+ if block_given?
62
+ yield(Configuration.default)
63
+ else
64
+ Configuration.default
65
+ end
66
+ end
67
+ end
68
+ end